这似乎是我的服务器上的东西已经改变,我看到在我的服务器上的每个网站上包含失败的错误消息,这里是一个例子:
Warning: require(xconstants_fa.php) [function.require]: failed to open stream: No such file or directory in /home/blahblah/public_html/fa/companies/ads/index.php on line 26
在第26行中说:
ini_set ("include_path", "../../includes/"); require "xconstants_fa.php";
所以很明显,不知何故我的服务器已经停止使用“ini_set”函数(因为它之前工作正常),我看着php.ini disable_functions,没有什么,我评论所有禁用的function,也是open_basedir,不工作那里。
如果我:
ini_set ("include_path", "../../includes/") or die('ERROR HERE');
它在页面上回显ERROR HERE
这里发生了什么事? 我将不胜感激任何forms的帮助。
你最好的select是检查PHP错误日志,因为它可能会更详细地解释问题是什么。
http://php.net/manual/en/configuration.changes.php
php_admin_value名称值设置指定指令的值。 这不能在.htaccess文件中使用。 任何使用php_admin_value设置的指令types都不能被.htaccess或ini_set()覆盖。 要清除之前设置的值,请使用none作为值。
http://www.hardened-php.net/suhosin/
https://stackoverflow.com/questions/11384416/cant-use-ini-set-because-session-is-active
警告:ini_set()[function.ini-set]:会话处于活动状态。 第3行中的C:\ xampp \ htdocs ******。php中不能更改会话模块的ini设置