RE: [PEAR] Re: HTTP_download : open file in browser, not download

From: Date: Tue, 01 Jun 2004 09:50:05 +0000
Subject: RE: [PEAR] Re: HTTP_download : open file in browser, not download
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12809@lists.php.net to get a copy of this message
Hi Mike, thanks for your interest I send a PDF file and use the $dl->guessContentType(); to send the mime type. I also tried $dl->setContentType("application/pdf"); with same result. When selecting 'open' in the prompt, PDF is correctly opened in Adbode PDF reader with both commands I updated my PEAR packages to the lastest version of HTTP_Header and HTTP_download (beta) The browser always display the prompt twice if I click 'open' and only once if I click 'Save' i saw no particular option in the Ie settings... what do you mean with the IE hack? i don't know this... Vincent -----Original Message----- From: Michael Wallner [mailto:mike@php.net] Sent: mardi 1 juin 2004 11:43 To: pear-general@lists.php.net Subject: [PEAR] Re: HTTP_download : open file in browser, not download Hi Vincent Dupont, you wrote: > Hi, > > I cannot send the files directly to the browser without having a popup requesting the user to selected either to open or to download the file; > I run PHP 4.3.4 on a IIS web server (Windows) > The browser is IE 6. What type of file are you sending? Did you set the correct mime type? Did you try the comonly used IE hack to simulate a file extension like: download.php/file.ext download.php?file=.ext Regards, -- Michael - < mike(@)php.net >

« previous php.pear.general (#12809) next »