可以使用Zend Framework中的文件

时间:2014-10-26 14:58:52

标签: php zend-framework dreamweaver

我想在我的一个php文件中使用Zend Framework中名为Date.php的文件。当我编写require_once函数时,

<?php require_once("Zend/Date.php") ?>

并希望在Dreamweaver或浏览器中的实时视图中看到php文件我收到如下错误信息

Warning: require_once(Zend/Date.php): failed to open stream: No such file or directory in
C:\xampp\htdocs\dream_server\explorers\explorerlist.php on line 2


Fatal error: require_once(): Failed opening required 'Zend/Date.php' (include_path='.;C:\phpincludes\ZendFramework\library') in
C:\xampp\htdocs\dream_server\explorers\explorerlist.php on line 2

要提一下,我已经使用dreamweaver配置了zend Framework并将zend框架放在

C:\phpincludes\ZendFramework

我的php.ini文件的windows部分就像

; Windows: "\path1;\path2"
include_path=".;C:\xampp\php\PEAR"

并改为此

; Windows: "\path1;\path2"
include_path=".;C:\phpincludes\ZendFramework\library"

现在我该如何解决这个问题。

1 个答案:

答案 0 :(得分:0)

在php.ini中禁用open_basedir

open_basedir =

或在您的虚拟主机上

php_admin_value open_basedir none