Re: Re: Simple Example of Passing on a file through a PHP script
| From: | Jason Wong | Date: | Thu, 04 Jul 2002 04:25:33 +0000 |
| Subject: | Re: Re: Simple Example of Passing on a file through a PHP script | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105354@lists.php.net to get a copy of this message | ||
On Thursday 04 July 2002 10:46, JJ Harrison wrote:
> I can output the file using readfile(). But the problem is that it appears
> to output the data in it's raw form. How can I get it to open in the right
> application?
You _do_ want it to output the data in it's raw form. However it is your
responsibility to output the correct headers beforehand so the browser knows
what to do with the file. Search archives for "download" would/should bring
up loads of articles on what form the headers should take.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
the butane lighter causes the pincushioning
*/