Re: [PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
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

Re: [PHP] Rename the current page

2003-10-17 Thread CPT John W. Holmes
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

Re: [PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
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

[PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
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