【发布时间】:2011-07-23 06:25:13
【问题描述】:
好吧,这个问题可能需要数百时间。但我无法让它工作。 有我的目录列表:
--main/
---- Zend/
---- dir1/
---- dir2/
这是我设置的包含路径配置:
set_include_path(PATH_SEPARATOR
. dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Zend' . PATH_SEPARATOR
. get_include_path());
我也尝试将所有目录单独添加到路径中。 但是apache坚持给出这些错误:
警告:require_once(Zend/Loader.php):打开流失败:C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\main\Zend\Translate.php 中没有这样的文件或目录在线25 致命错误:require_once():无法打开所需的“Zend/Loader.php”(include_path=';C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\main\Zend;.;C:\php\ pear') 在 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\main\Zend\Translate.php 第 25 行
这是从dir1 中的这些行中的 php 文件中抛出的:
include_once '../Zend/Locale.php';
include_once '../Zend/Translate.php'; //this is the line
我该如何解决这个问题?
【问题讨论】:
标签: php zend-framework