2012-08-27 36 views
1

在W7上運行,php5.3.5。
我已經下載並安裝了Zend框架文件。現在,我試圖運行PHP的安裝cheker recommended here但它返回一個eror:zend安裝

Ran PHP Installation Checker on 2012-08-27T13:06:37+00:00 
PHP Extension Errors   Tested 
No errors found 
Zend Framework Installation Tested 
Errors 
0        Exception thrown trying to access Zend/Loader.php 
           using 'use_include_path' = true. 
           Make sure you include Zend Framework in your 
           include_path which currently contains: 
           .;C:\php\pear 
SSL Capabilities Errors  Not tested 
YouTube API Connectivity  Not tested 
Errors 

這裏有類似的問題,挖掘this questionthis other

已經嘗試過this solution和其他類似的人,但錯誤繼續出現。

編輯01:
使用thisthis我想包括路徑,但不工作。當我撥打get_include_path()時,它會再次返回.;C:\php\pear

這裏是添加的路徑的PHP:

<?php 
$path = '.C:\php\zend'; 
set_include_path(get_include_path() . PATH_SEPARATOR . $path); 
?> 

編輯02:
實測值php.ini,編輯和添加:根據this link on the Google developers pageinclude_path = ".;c:\php\pear;.;c:\php\lib\Zend"。錯誤仍然出現,但現在將.;c:\php\lib\Zend添加到路徑中。

+0

'確保你的include_path包含了Zend Framework,問題是? – KingCrunch

+0

編輯我的問題澄清... – Yaroslav

回答

1

您應該編輯php.ini,如「Description of core php.ini directives」中所述。

include_path=".:/php/includes" 

請記住,在大多數情況下,不同的sapis使用不同的php.ini文件。在CLI上使用php --ini來找到合適的。

+0

找到該文件。根據[Google開發者頁面上的此鏈接]編輯並添加:'include_path =「。; c:\ php \ pear;。; c:\ php \ lib \ Zend」'(https://developers.google.com/GDATA /用品/ php_client_lib?HL = ES#appendix_phpini)。錯誤仍然出現,但現在將'。; c:\ php \ lib \ Zend'添加到路徑中。再次編輯我的問題。 – Yaroslav

+0

什麼是'c:\ php \ lib \ Zend'中的_exactly_?我問,因爲包含路徑必須指向庫文件夾而不是整個包。我想這是'c:\ php \ lib \ Zend \ library'或類似的東西。 – KingCrunch

+0

嗯......現在你有了我......我到處看到'library',我認爲它是指Zend框架的完整文件夾。那麼我應該寫什麼而不是'library'?剛剛檢查了我從[這裏](http://framework.zend.com/download/gdata/)下載的內容,並看到有一個'library'文件夾。修改文件夾的路徑和名稱以指向這個,結果相同。 – Yaroslav