Posted by friglob on 10/07/06 10:34
this is very simple version of download.php:
$filename = "folder/filename.jpg";
$filesized = filesize($filename);
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Type: image/jpeg');
header('Content-Disposition: attachment; filename="name.jpg"');
readfile_chunked($filename,$filesized);
works great on PC but on MAC client recieves a message "0 KB" and no download is started
i have been googling but with not much luck so i would like to know if there is some workaround or solution?
thank you very much
[Back to original message]
|