<?php
require_once("inc/bouncer.php");
function ForceDownloadImage($path_to_image)
{
//get filename
$filename = basename($path_to_image);
//sent the right headers
header("Content-Transfer-Encoding: binary");
header("Content-Type: text/plain");
header("Content-Disposition: attachment; filename=$filename");
//start feeding with the file
readfile($path_to_image);
}
?>