phpnow如何关闭magic_quotes_gpc
我用phpnow搭载一个简单的网页实现SQL注入,但是在php.ini里把magic_quotes_gpc改成off没用,运行以下代码总是返回Y:
if(get_magic_quotes_gpc())
{
echo 'Y';
}
else
{
echo 'N';
}
?>
怎么让phpnow不会自动转义
------解决思路----------------------1. php.ini修改完了之后需要重启
2. 我不知道phpnow安装的时候会不会包含多个php版本,你需要看一下你是不是修改的当前版本的php.ini(phpstudy会出现这个情况,不知道phpnow有没有)
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn