
December 29th, 1999, 10:12 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
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:
<?
header("Content-Type: text/plain");
?>
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:
<?
header("Location: http://www.blah.com/script.phtml/whatever.txt");
?>
Or you could make a form post to that url, saving you from having to redirect.
|