PHP download on MAC

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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"');


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

Re: PHP download on MAC

Hm-m-m, I'm not sure but try this:
header("Content-Type: application/octet-stream");

Site Timeline