Re: fread question

From: Date: Thu, 18 Dec 2008 02:27:18 +0000
Subject: Re: fread question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284762@lists.php.net to get a copy of this message
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

« previous php.general (#284762) next »