<?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;
}
?>
关键字词:
相关文章
- PHP网站被黑下马处理以及防黑大全解读
- php下json_encode使用gbk输出时候null无输出内容解决办法
- window下redis和memache扩展的安装
- PHP使用Redis防止大并发下二次写入处理
- PHP下服务器做了反向代理要拿到用户的真实IP方法
- php5.5 版本和5.6 file_get_contents curl
- php 获取全部post参数 php5.5 php5.6
- PHP5.6接口报错提示 Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version
- 高质量PHP代码的50个实用技巧必备(下)
- php5.4传引用时报错问题分析