Return to Snippet

Revision: 2139
at January 3, 2007 18:45 by nicolaspar


Initial Code
# TURN OF MAGIC QUOTES
if ( get_magic_quotes_gpc () ){
	function traverse ( &$arr ){
		if ( !is_array ( $arr ) ) return;
		foreach ( $arr as $key => $val )
			is_array ( $arr[$key] ) ? traverse ( $arr[$key] ) : ( $arr[$key] = stripslashes ( $arr[$key] ));
	}
	$gpc = array ( &$_GET, &$_POST, &$_COOKIE, &$_REQUEST );
	traverse ( $gpc );
}

Initial URL

                                

Initial Description

                                

Initial Title
PHP - Desactivar Magic Quotes sin modificar php.ini (PHP)

Initial Tags

                                

Initial Language
PHP