1

似乎我的服务器上的某些内容已更改,并且我在服务器上的每个网站上都看到包含失败的错误消息,这是一个示例:

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,什么都没有,我评论了所有禁用的功能和 open_basedir,不工作那里。

如果我:

ini_set ("include_path", "../../includes/") or die('ERROR HERE');

ERROR HERE在页面上回响

这里发生了什么事?我将不胜感激任何帮助。

4

2 回答 2

1

尝试使用实际函数来更改 include_path set_include_path()

$path = '../../includes/';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
于 2013-05-05T08:06:07.700 回答
1
<?php ini_set('include_path',ini_get('include_path').':../../includes/:');  ?>
于 2013-05-05T08:10:27.653 回答