Home  >  Article  >  php教程  >  打开一个php文件,找不到library/Zend/目录

打开一个php文件,找不到library/Zend/目录

WBOY
WBOYOriginal
2016-06-06 19:45:48961browse

ZF安装完后,在浏览器输入"zf2.com"(自己) 可以打开我自己建的项目zf,zf主目录下有四个文件夹(如下图) 当我点击tests文件夹下的"bootstrap.php"后报错(下图),其他以".php"结尾的文件在浏览器打开后报一样的错误。 报错的意思是包含的文件路径有错误,

ZF安装完后,在浏览器输入"zf2.com"(自己) 可以打开我自己建的项目zf,zf主目录下有四个文件夹(如下图)

打开一个php文件,找不到library/Zend/目录

打开一个php文件,找不到library/Zend/目录

当我点击“tests”文件夹下的"bootstrap.php"后报错(下图),其他以".php"结尾的文件在浏览器打开后报一样的错误。

打开一个php文件,找不到library/Zend/目录

报错的意思是包含的文件路径有错误,

1.我从官网下载的ZendFramework-2.2.2,解压后将ZendFramework-2.2.2中的library文件夹复制到了我自己的项目zf中。

2.在php.ini的include_path的配置贴出来:include_path=".;E:/wamp/www/zf/library/Zend" 

 

3.在apache新增一个虚拟主机,在httpd-vhosts.conf文件中的配置,主要看第三行

DocumentRoot "E:/wamp/www/zf"

VirtualHost *:80>
ServerAdmin webmaster@dummy-host.hleclerc-PC.ingenidev
DocumentRoot "E:/wamp/www/zf"
ServerName zf2.com
ServerAlias www.dummy-host.hleclerc-PC.ingenidev
ErrorLog "logs/dummy-host.hleclerc-PC.ingenidev-error.log"
CustomLog "logs/dummy-host.hleclerc-PC.ingenidev-access.log" common
VirtualHost>

问题:从官网下的ZendFramework-2.2.2,解压后将library文件夹拷贝到了我的项目zf目录下,为什么还是报" No such file or directory"错误?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn