RE: [PHP] magic quotes

From: Date: Thu, 09 Aug 2007 15:44:02 +0000
Subject: RE: [PHP] magic quotes
Groups: php.general 
Request: Send a blank email to php-general+get-260514@lists.php.net to get a copy of this message
On 09 August 2007 14:44, David Giragosian wrote: > On 8/9/07, Bastien Koert <bastien_k@hotmail.com> wrote: > > > > > > you could use ini_set at the top of the script to turn the magic > > quotes off...if you add this in a prepend file or a common included > > file that sits at the top of the script, it should take care of the > > damn magic quotes... > > > Why might this not work? Because, by the time your script starts executing, any magic_quotes_gpc processing has already been applied. As such, it only makes sense to set this option in php.ini, httpd.conf or .htaccess (or equivalents). Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 812 4730 Fax: +44 113 812 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

« previous php.general (#260514) next »