Try this:

header ("Content-type: text/plain");
header ("Content-disposition: attachment; filename=file.txt");

Kind regards,
>>>> <<<< Quality web hosting


> I would like to create a text file that doesn't save to disk but askes me
> save the file.
> like when i click on a zip file from a website, ie asks me to save the
> to somewhere.
> how do i create the file and then tell my browser to ask the user to save
> the file somewhere
> ???

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to