Re: fread question
| From: | ceo at l-i-e dot com | Date: | Thu, 18 Dec 2008 15:58:54 +0000 |
| Subject: | Re: fread question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-284791@lists.php.net to get a copy of this message | ||
PHP does *not* do the addslashes on $_POST when you cram something into it in your PHP code.
It does it during the process of auto-filling up $_POST.
So either:
A) you have magic_quotes_runtime turned on LOCALLY. Use phpinfo() to see.
B) you actually managed to put the backslashes into your text file.
PS
You really shouldn't be cramming data into $_POST, imho.
Too confusing for later development/maintenance.
$_POST should be "read only"
Copy the parts of $_POST you want into something else, and add in your file contents as well.