PHP5下$_SERVER变量不再受magic_quotes_gpc保护的弥补方法
2012-10-31 00:00
721 查看
<?php $magic_quotes_gpc = get_magic_quotes_gpc(); @extract(daddslashes($_COOKIE)); @extract(daddslashes($_POST)); @extract(daddslashes($_GET)); if(!$magic_quotes_gpc) { $_FILES = daddslashes($_FILES); }
daddslashes函数
//转译字符函数 function daddslashes($string) { if(!is_array($string)) return addslashes($string); foreach($string as $key => $val) $string[$key] = daddslashes($val); return $string; } ?>
相关文章推荐
- PHP5下$_SERVER变量不再受magic_quotes_gpc保护的弥补方法
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- 基于PHP magic_quotes_gpc的使用方法详解
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- PHP函数讲解:get_magic_quotes_gpc()使用方法
- 基于PHP magic_quotes_gpc的使用方法详解
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的详细使用方法
- PHP magic_quotes_gpc的使用方法详解
- php中magic_quotes_gpc函数详解