I'm using this code to various files for download via a http header -

$filename = basename($filepath);
header("Content-type: unknown/unknown");
header("Content-Disposition: attachment; filename=$filename");
readfile($filepath);

works fine in most cases - the save dialogue appears. However -

IE on a MAC loads the file inline rather than throwing the save prompt.

Any ideas?

Javier





_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to