how to send a file to the user's browser?
| From: | Carlos Fernando Scheidecker Antunes | Date: | Mon, 18 Mar 2002 20:51:56 +0000 |
| Subject: | how to send a file to the user's browser? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89033@lists.php.net to get a copy of this message | ||
Hello all,
I've got a script that generates a txt file, compresses it into a Zip file and it all happens
on a directory that is out of apache's web site.
This script generates the file based on MySQL server information and I have it then sent to the
user's e-mail address. What I would like to do is to make the PHP script "throw" the
file to the user's browser so that it would download it automatically. This file is created on
a directory that is not the same as the web server where the pages and php scripts are located.
Anyone could help me with that?
Thanks.
regards,
Carlos Fernando Scheidecker Antunes
Linux User #207984