Re: fread question
| From: | MikeP | Date: | Thu, 18 Dec 2008 11:01:15 +0000 |
| Subject: | Re: fread question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284779@lists.php.net to get a copy of this message | ||
From my phpinfo:
magic_quotes_runtime Off
"Robert Cummings" <robert@interjinn.com> wrote in message
news:1229567238.8302.35.camel@localhost...
> On Wed, 2008-12-17 at 19:54 -0500, MikeP wrote:
>> Hello,
>> I have been trying to use fread to open a file, but it always escapes
>> special characters.
>> How do I open afile without it modifying my original file:
>>
>> $_POST[$fname] = fread($fileHandle, $_POST[$fname.'_size']);
>> I use this and get slashes everywhere.This kills my REGex that gets coded
>> next.
>
> Check this magically shitty setting in your php.ini:
>
> magic_quotes_runtime
>
> It should be off unless someone with less brains than a turd got a hold
> of your ini file.
>
> Cheers,
> Rob.
> --
> http://www.interjinn.com
> Application and Templating Framework for PHP
>