RE: [PEAR] Re: HTTP_Download strange output
| From: | elliot | Date: | Wed, 24 Mar 2004 12:31:10 +0000 |
| Subject: | RE: [PEAR] Re: HTTP_Download strange output | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11471@lists.php.net to get a copy of this message | ||
Thanks for the meta tag idea! I wish I'd thought of that first. I went
ahead and tried the frames approach and it worked like a charm, though.
Probably a bit more labor than a meta refresh, but hey, if it works...
go with it.
There is another small problem I am having. When I attempt to download
a document with a # sign in the document name the system stops reading
the document name at the pound sign. I tried urlencoding and
rawurlencoding the filename, but this didn't seem to fix the problem.
Just for good measure, I even tried urldecoding (in case I was being
dyslexic about things).
Have you ever encountered this problem?
Elliot
-----Original Message-----
From: Mike Carter [mailto:mikeatwork@ukonline.co.uk]
Sent: Wednesday, March 24, 2004 2:22 AM
To: 'Elliot Larson'; pear-general@lists.php.net
Subject: RE: [PEAR] Re: HTTP_Download strange output
> -----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
______________________________________________________________________
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php