RE: [PHP] file download in IE

From: Date: Tue, 23 Apr 2002 11:40:02 +0000
Subject: RE: [PHP] file download in IE
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94137@lists.php.net to get a copy of this message
I think this is only an issue with an un-patched IE5.01, anything higher than that should work fine. .b > -----Original Message----- > From: Negrea Mihai [mailto:mike@spidernet.co.ro] > Sent: 23 April 2002 12:26 > To: php-general@lists.php.net > Subject: [PHP] file download in IE > > > Hi! > > How on earth do I make Internet Explorer to download a file > generated with: > > header("Content-type: application/octet-stream"); > header("Content-Disposition: attachment; filename=$fname"); > include($this->dir . $fname); > exit; > > It works on http but I need it on https and if I try to download > it through > https Internet explorer says it can't find the website.. after it > asks me if > I want to save the file. > I have checked the page and it works with: netscape under windows and > konqueror, galeon, netscape under linux. > > I have seen reports on the web about this "feature" of Internet > explorer and > they all say to download some service pack.. I have updated my internet > explorer to the latest 6 version with all the updates on the web > but it still > does not work! > > Anyone knows a workaround for this? I don't want to do it with header > ("Location: somefile") because the file that I want to make available for > download is outside the webroot and i want it to be accessible > only through > my script. > > Thanks a lot! > > Eagerly waiting for a response, > > Mihai > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#94137) next »