Re: downloading text files stored in database?
| From: | Lee P Reilly | Date: | Mon, 25 Feb 2002 22:22:42 +0000 |
| Subject: | Re: downloading text files stored in database? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86168@lists.php.net to get a copy of this message | ||
Hi,
Thanks for your help, but that assumes that file is (at least temporarily)
stored on disc - I'd like to take the file data straight out of the database
and be available for "download" by the user. Is this possible at all, or will
I have to create a temporary file to hold the data, and *then* allow the user
to download it?
Cheers,
Lee
Ivan Balazs wrote:
> In the download_file.php put a header() function which redirects the
> browser to the file, like header("Location: test.dat"). After that it
> should show the dialog screen.
> Bala