Tuesday, June 14, 2011
php magic quote turn off
if ( in_array( strtolower( ini_get( 'magic_quotes_gpc' ) ), array( '1', 'on' ) ) )
{
$_POST = array_map( 'stripslashes', $_POST );
$_GET = array_map( 'stripslashes', $_GET );
$_COOKIE = array_map( 'stripslashes', $_COOKIE );
}
http://stackoverflow.com/questions/517008/how-to-turn-off-magic-quotes-on-shared-hosting
Labels:
magic quotes,
PHP
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment