Thanks for your response,
What I tried was the following:
header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=\"textfile.txt\"");
echo $output;
This works properly on Mozilla, however the following problems occur in IE:
IE version 5.50.4522.1800 -> 2 dialog boxe
From: "Grant Rutherford" <[EMAIL PROTECTED]>
> I have tried many variations of the header command, but no luck so far.
> It seems to work okay on Mozilla browsers but not IE.
Okay, what have you actually tried? What are you using now? Have you read
through _all_ of the comments on the manual page
Grant Rutherford wrote:
Alternatively, is there some way that I could generate that file,
redirect the user to it, and then delete the file again afterwards? I
know how to do all of this except delete the file. Is there some way to
schedule a command to be run after the script is finished?
T
Hi there,
I would like a user to request the page "view_file.php", and I would
like php to generate an arbitrary file and send it to the user. This is
all okay, however, I would like to rename the sent page so that the
browser doesn't open it in a window as an html file but instead brings
up
4 matches
Mail list logo