脚本宝典收集整理的这篇文章主要介绍了php require_once“FILENAME”导致失败打开所需”,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
Line 64 require_once 'Zend/View/Stream.PHP'
在apache错误日志中我看到:
[error] [client 127.0.0.1] PHP致命错误:@R_30_502@:无法打开所需”(include_path =’………
我一直在谷歌和调试四个小时..也许这听起来很熟悉某人..
我不明白代码行如何
require_once 'Zend/View/Stream.PHP'
Failed opening required ''
感谢@conceptdeluxe,他在使用PHP 5.4.30和APC 3.1.13时想到了这一点.
已确认可能的解决方案是通过配置指令apc.stat = 1(在PHP.ini中)启用APC或升级PHP和扩展.
除此以外
您可能希望按照http://php.net/manual/fr/function.set-include-path.php中提供的说明更新include_path配置选项
基本上,需要告诉解释器在哪里查找Zend类.
让我们假设,Zend库可从/ VAR / www / my_PRoject / vendor / Zend获得,然后我们可以在使用Zend Stream之前进行下一次调用:
set_include_path(get_include_path() . PATH_SEPARATOR . '/var/www/my_project/vendor');
另一个解决方案是改变PHP配置文件
通过更新include_path值如下:
# assuming vim is available as text edITor # and PHP configuration file would be available for editing vim /etc/PHP.ini # apPEnd /var/www/my_project/vendor to the value of entry include_path='.:/var/www/my_project/vendor'
以上是脚本宝典为你收集整理的php require_once“FILENAME”导致失败打开所需”全部内容,希望文章能够帮你解决php require_once“FILENAME”导致失败打开所需”所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。