On 09 August 2007 14:44, David Giragosian wrote:

> On 8/9/07, Bastien Koert <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to