最近想要架设一个Discuz!X 做论坛,结果在上传文件后访问 http://www.domainname.com/install/index.php 时 出现了
HTTP ERROR 500的错误,
检查发现
PHP Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home/wwwroot/a/domain/domainname/web/install/index.php:12
未定义的函数调用?
也就是这个install目录下的”index.php”中的函数出现了问题,
原函数为
@set_magic_quotes_runtime(0);
在科学上网后得知需要将这一句改为
@ini_set("magic_quotes_runtime",0);
现在就能顺利的解析了。
不知道为什么 原本需要使用 int_set();来给项赋值的,然而Discuz!中没有这样写。
发表回复