RE: magic quotes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> On 8/9/07, Bastien Koert <bastien_k@xxxxxxxxxxx> 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@xxxxxxxxxxxxxx
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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux