Re: [PHP] Re: Kill Magic Quotes

2008-08-07 Thread Chris

Roger Bigras wrote:

you may try the

ini_set('magic_quotes_gpc',0);


RTM.

http://www.php.net/get_magic_quotes_gpc

It cannot be enabled/disabled at run time. It has to either be done in a 
.htaccess or through apache/php.ini changes.


See this page for how to disable it:

http://www.php.net/manual/en/security.magicquotes.disabling.php

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



Re: [PHP] Re: Kill Magic Quotes

2008-08-07 Thread viraj
On Fri, Aug 8, 2008 at 9:05 AM, Chris [EMAIL PROTECTED] wrote:
 http://www.php.net/get_magic_quotes_gpc

 It cannot be enabled/disabled at run time. It has to either be done in a
 .htaccess or through apache/php.ini changes.

afaik, turning off/on 'magic_quotes_sybase' is a workaround.

it overrides the 'magic_quotes_gpc' and can be manipulated through ini_set

php.net says
 magic_quotes_sybaseIf enabled, a single-quote is escaped with a
single-quote instead of a backslash. If on, it completely overrides
magic_quotes_gpc. Having both directives enabled means only single
quotes are escaped as ''. Double quotes, backslashes and NULL's will
remain untouched and unescaped.   See also ini_get() for retrieving
its value.
/php.net says


~viraj


 See this page for how to disable it:

 http://www.php.net/manual/en/security.magicquotes.disabling.php

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



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