1、进入php安装目录,找到并打开php.ini配置文件;
2、找到magic_quotes_gpc选项;
3、将该选项的值修改为Off,并保存配置文件即可。
htmlspecialchars(¬)
url串禁止转义并解决中文字符乱码:
$data = array( 'devi' => 'y', 'ap' => 'ios', 'user' => 'w5807', 'login' => '随便', 'loginpwd' => 'e10adc3949ba59abbe56e057f20f883e', 'mobile' => '15555555555', 'regReferee' => 'aaa', 'atm' => 'e10adc3949ba59abbe56e057f20f883e' ); $c_data = urldecode(htmlspecialchars(http_build_query($data)));//禁止字符串转义和中文字符乱码


