【发布时间】:2023-03-17 14:51:02
【问题描述】:
我想在我的一个 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 framework放进去
C:\phpincludes\ZendFramework
我的 php.ini 文件的 windows 部分就像
; Windows: "\path1;\path2"
include_path=".;C:\xampp\php\PEAR"
改成这个了
; Windows: "\path1;\path2"
include_path=".;C:\phpincludes\ZendFramework\library"
现在我该如何解决这个问题。
【问题讨论】:
-
C:\phpincludes\ZendFramework\library的结构在哪里?里面有 Zend 文件夹吗?
-
zend 文件夹在库文件夹 @M.M. 内
标签: php zend-framework dreamweaver