【发布时间】:2014-06-12 10:21:36
【问题描述】:
我一直在为这个寻找解决方案,但似乎对我没有任何用处,问题是我已经在其他项目中使用 require_once 与相同的库 (PHPExcel) 并且工作得很好,但现在我没有不知道怎么回事。
我在两个项目中都使用了 CodeIgniter,但我不知道是 PHP 版本问题还是我做错了什么。 所以,这里是代码:
$this->load->library('PHPExcel');
require_once (base_url().'applications/proyect/libraries/PHPExcel/Cell/AdvancedValueBinder.php');
并显示:
A PHP Error was encountered
Severity: Warning
Message: Users::require_once(http://localhost/my_proyect/applications/proyect/libraries/PHPExcel/Cell/AdvancedValueBinder.php) [function.Usuarios-require-once]: failed to open stream:
An error occurred during the connection attempt because the connected party did not properly respond after a period of time, or there was an error in the connection established because connected host has failed to respond
Fatal error: Users::require_once() [function.require]:
Failed opening required 'http://localhost/my_proyect/applications/proyect/libraries/PHPExcel/Cell/AdvancedValueBinder.php' (include_path='.;C:\php5\pear'
我不确定C:\php5\pear 是什么,但我无法处理require_once 问题。
【问题讨论】:
标签: php codeigniter require-once