简体   繁体   English

Windows上的PHP包含Zend Framework的路径不起作用

[英]PHP on Windows Include path for Zend Framework not working

I know this should be real simple, but I can't get Zend Framework to work. 我知道这应该真的很简单,但是我无法使Zend Framework正常工作。

What I did so far: 到目前为止,我做了什么:

1 - Downloaded Zend Frame Full 1-下载的Zend Frame Full

2 - Extracted everything to c:\\php\\includes\\ZendFramework. 2-将所有内容提取到c:\\ php \\ includes \\ ZendFramework。

3 - Modified the php.ini file so now it shows 3-修改了php.ini文件,因此现在显示

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;C:\php\includes;C:\php\includes\ZendFramework\library"

4 - Added same info to my 'path' in windows system variable, so now the relevant portions look like: 4-在Windows系统变量的“路径”中添加了相同的信息,因此相关部分如下所示:

C:\Program Files (x86)\PHP\v5.4;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\php\includes;C:\php\includes\ZendFramework\library

I used the Zend InstallationChecker from http://framework.zend.com/svn/framework/standard/trunk/demos/Zend/Gdata/InstallationChecker.php and receive the following response: 我从http://framework.zend.com/svn/framework/standard/trunk/demos/Zend/Gdata/InstallationChecker.php使用Zend InstallationChecker并收到以下响应:

Zend Framework Installation Errors Tested Zend Framework安装错误已测试

0 0

Exception thrown trying to access Zend/Loader.php using 'use_include_path' = true. 尝试使用“ use_include_path” = true尝试访问Zend / Loader.php时引发异常。 Make sure you include Zend Framework in your include_path which currently contains: .;C:\\php\\includes;C:\\php\\includes\\ZendFramework\\library 确保在您的include_path中包括Zend Framework,该文件当前包含:。; C:\\ php \\ includes; C:\\ php \\ includes \\ ZendFramework \\ library

I've read all sorts of install guides and I'm pretty sure I've done everything I was supposed to. 我已经阅读了各种安装指南,并且可以确定我已经完成了应该做的所有事情。 Why is this not working? 为什么这不起作用?

That installation checker is part of ZF1, but if you downloaded the framework fresh, you've installed ZF2. 该安装检查程序是ZF1的一部分,但是,如果您重新下载了该框架,则说明您已经安装了ZF2。 It's quite possible that everything's installed fine, and it's the installation checker that is broken (as it looks for a file that doesn't exist in ZF2). 很有可能一切都安装正确,并且安装检查程序损坏了(因为它查找ZF2中不存在的文件)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM