0

我收到以下 PHP 警告:

PHP Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//home/domain.nl/application/views/helpers/HeadLink.php) is not within the allowed path(s): (/usr/share/php:/home/domain.nl/:/usr/share/pear:/usr/sbin:/usr/bin:/bin:/tmp:/etc/phpmyadmin:/usr/lib/php4:/usr/lib/php5:/opt/ioncube/lib) in /home/domain.nl/library/Zend/Loader.php on line 186

怎么/usr/share/pear//home/domain.nl/application/views/helpers/..不在允许的路径之内/usr/share/pear

谢谢,

马汀

4

1 回答 1

1

https://bugs.php.net/bug.php?id=37476

如果 php 早于 5.2,则表示 is_readable 会针对不存在的文件抛出此警告。

你的路径看起来像一条不存在的路径。我的意思是它可能应该以 /home/domain.nl 开头,而 /usr/share/pear/ 部分是无意的。(也许 include_path 指令前置?)

于 2013-12-03T19:21:22.697 回答