Okay well I removed the image path from the database entry, but I couldn't work out where to put the path in the code..
in Content-Disposition? or..
[php]
$filename = $_GET['id'];
header("Pragma: public");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false) ;
header("Content-Disposition: attachment; filename=\"".ba sename($filenam e)."\";" );
header("Content-Transfer-Encoding: binary");
header("Content-Type: PHP Generated Data");
header("Content-Length: ".filesize($fil ename));
[/php]
Not sure what you meant about the printing of the image data?
in Content-Disposition? or..
[php]
$filename = $_GET['id'];
header("Pragma: public");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false) ;
header("Content-Disposition: attachment; filename=\"".ba sename($filenam e)."\";" );
header("Content-Transfer-Encoding: binary");
header("Content-Type: PHP Generated Data");
header("Content-Length: ".filesize($fil ename));
[/php]
Not sure what you meant about the printing of the image data?
Comment