Re: help needed with headers
| From: | Yuri Petro | Date: | Sat, 27 Apr 2002 15:43:41 +0000 |
| Subject: | Re: help needed with headers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94901@lists.php.net to get a copy of this message | ||
Try this:
header ("Content-type: text/plain");
header ("Content-disposition: attachment; filename=file.txt");
--
Kind regards,
Yuri.
>>>> www.AceHoster.com <<<< Quality web hosting
"Vins" <vins@webonline.co.za>
> I would like to create a text file that doesn't save to disk but askes me
to
> save the file.
> like when i click on a zip file from a website, ie asks me to save the
file
> to somewhere.
>
> how do i create the file and then tell my browser to ask the user to save
> the file somewhere
>
> ???
>
>