December 29th, 1999, 02:08 PM
I would like to have the results of my php script displayed as plain text instead of html.
The browser would show (xxxx.txt).
This would save the explanation to users on how to convert ( save as ) from xxx.html to xxx.txt.
Any help with this code would be appreciated.
December 29th, 1999, 11:12 PM
This will show the results as plain text, but won't show xxxx.txt in the location since that can't be arbitrarily set...
before sending any data:
If you really want it to show xxxx.txt in the location bar, you could have your script redirect to scriptname.phtml/whatever.txt, just make sure you include the full server name in the redirect... like this:
Or you could make a form post to that url, saving you from having to redirect.