PHP removing data...
| From: | Doug Coning | Date: | Sat, 08 Mar 2003 16:12:59 +0000 |
| Subject: | PHP removing data... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138754@lists.php.net to get a copy of this message | ||
Hi all,
I'm trying to save a text file from my server to a client machine through
PHP and am using the following headers:
header("Content-type: application/text");
header("Content-Disposition: attachment; filename=variables.txt");
The header does save a text file from the server to my desktop alright, but
it strips everything in the text file. I have a file named variables.txt
with nothing in it. I have uploaded a text file that does have test data in
it. Furthermore, I set all the user rights in Unix to Read / Write/Execute
but everytime PHP opens or saves it, it does so without any of the variables
I've entered.
Does anyone have a suggestion as to what I'm doing wrong?
Thanks!!!!
Doug Coning