ID: 16210 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Windows 2000 PHP Version: 4.1.2 New Comment:
Through trial and error I've determined that in all likely hood this is a config issue on my end somewhere in php.ini (but where!?) =) I've tried 4.2 RC1 on the win2000 server that had 4.1.1 and the functionality worked fine (still). On the other server that has 4.1.2 on it (which wasn't working) and putting on 4.2RC1 didn't alleviate the symptom. This leads me to believe that it's a config issue on my end and not a php code issue. I regret any inconvenience this bogus report may have caused =) Erik Previous Comments: ------------------------------------------------------------------------ [2002-03-21 14:58:43] [EMAIL PROTECTED] Hi, I believe there is an issue with the header function in 4.1.2 windows Apache module (or it may be a configuration issue on my end, but hear me out =)) First let me state, that I know and understand that IE 5 and 5.5sp1 and even IE 6 have all sorts of issues with content-disposition and how it handles mime-types in general. I don't believe that to be the core issue. I had a script that worked in 4.1.1 until I upgraded to 4.1.2 (apache module + win 2000) I've cut it down to pretty much as simple as possible to eliminate coding issues on my end. <?php header("Expires: Mon, 26 Nov 1962 00:00:00 GMT"); header("Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=22119.pdf"); readfile("download/22119.pdf"); ?> This script will cause IE to give the user a "File Open/Save" dialogue box with the correct filename (in this example 22119.pdf) when running on 4.1.1 (which is the desired effect). On 4.1.2 IE will display the "File Open/Save" dialogue box will come up but display the name of the script (download.php for example) and then will display another warning box if you hit "save" stating that it couldn't download the file "download.php" from www.myserver.com. Of course this functionality works like a dream in Netscape regardless of version. Thank you in advance for your consideration of this potential issue =) With best regards, Erik ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16210&edit=1