Return to Snippet

Revision: 131
at June 30, 2006 13:38 by cochambre


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
Desactivar Magic Quotes sin modificar php.ini

Initial Tags

                                

Initial Language
PHP