客户安装页面:
https://kans123.com/dd/fanli/install/install.php?step=1
检测file_get_contents 不支持!!
file_get_contents 对应服务器fopen函数,服务器禁止函数之一。同时该函数会加大服务器php 的cpu负载。但是,他有个独有功能,file_get_contents() 函数把整个文件读入一个字符串中。
思路:
这个函数,服务器端可以不用开启,可以在客户目录下,创建php.ini文件,添加 allow_url_fopen=on 即可;
初次:
在用户public_html 目录下创建添加,检测还是无法通过,测试后发现在
Public_html/dd/fanli/install/php.ini 可以。
接着:
客户网站后台访问:
提示“没有授权……”
www.kans123.com/fanli/admin/index.php?mod=login&act=login
查看index.php 是乱码,这时就提到上面该函数的作用,读入字符串功能。
同上:在同目录下,创建php.ini文件,添加 allow_url_fopen=1 即可;