Re: downloading files
| From: | Ignacio Vazquez-Abrams | Date: | Mon, 11 Dec 2000 18:35:41 +0000 |
| Subject: | Re: downloading files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29726@lists.php.net to get a copy of this message | ||
On Mon, 11 Dec 2000, Carlos Fernando Scheidecker Antunes wrote:
> Ignacio,
>
> How can I use the readfile() function to dump the file to the client?
>
> Thank you,
>
> Carlos Fernando Scheidecker Antunes.
>
Set the content type with header() (e.g., header("Content-Type: text/plain")),
then use readfile():
http://www.php.net/manual/html/function.readfile.html
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>