RE: [PEAR] Re: HTTP_Download strange output

From: Date: Wed, 24 Mar 2004 10:21:53 +0000
Subject: RE: [PEAR] Re: HTTP_Download strange output
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11469@lists.php.net to get a copy of this message
> -----Original Message----- > From: Elliot Larson [mailto:elliot@onehouse.net] > > Oh, wait, as I write this, it occurs to me that they might be using a > frameset, using a small frame to call the download page and a > large frame to > display some friendly HTML. > > I'll give this a shot. If it doesn't work, I may have to throw in the > towel. I think there is a way. You show the html, then do a meta refresh to the actual php script which dumps the file to the client. A few headers I send out for files (in my case it ws PDFs generated): header("Cache-Control: no-store"); header("Cache-Control: no-cache"); header("Cache-Control: must-revalidate"); header("Content-type: application/pdf"); header("Content-Length: $len"); header("Content-Disposition: inline; filename=file.pdf"); IE is a bit weird with its headers. Can be a right pain In the.... Regards, Mike C. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

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