凌的博客

您现在的位置是:首页  > 学无止境 > PHP

PHP

手动关闭 magic_quotes_gpc

2015-12-07PHP0
//手动关闭 magic_quotes_gpc if (ini_get(\'magic_quotes_gpc\')) { function stripslashesRecursive(array $array) { foreach ($array as $k => $v) {
//手动关闭 magic_quotes_gpc
if (ini_get('magic_quotes_gpc')) {
        function stripslashesRecursive(array $array)
        {  
                foreach ($array as $k => $v) {
                        if (is_string($v)) {
                                $array[$k] = stripslashes($v);
                        } else if (is_array($v)) {
                                $array[$k] = stripslashesRecursive($v);
                        }  
                }  
                return $array;
        }  
     
        $_GET   = stripslashesRecursive($_GET);
        $_POST  = stripslashesRecursive($_POST);
}	
	

如果本文对您有所帮助,请支持下本站哦!!!^_^

文章评论

0条评论