织梦CMS用php5.3以上版本出现include C,G and P (recommended:

部分使用PHP 5.3版本以上主机可能会有下面的提示:
(PHP 5.3 and above) Please set ‘request_order’ ini value to include C,G and P (recommended: ‘CGP’) in php.ini
由于在PHP最新的版本中增加了一个配置项目“request_order”,默认值为“GP”,这个存在一定的安全风险。这里我们建议用户将配置更改为“CGP”

方法一:
可以在phpinfo中查看对应的php.ini配置目录,找到下面选项:
request_order = “GP”
更改为
request_order = “CGP”
重启服务器apache服务后即可。

方法二:

找到includ\common.inc.php文件里面的第34行   if(strtoupper(ini_get('request_order')) == 'GP') 改为 if(strtoupper(ini_get('request_order')) == 'CGP')

就可以了。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/71eb8da7072ff1eb0160139b5acc3cf6.html