一千萬個為什麽

搜索

Zend框架安裝

After including the library in php.ini, I try to create a project in a DOS window by typing C:\wamp\www\Zend\bin>zf.bat create project quick start I got a error message:

'“php.exe”'不被識別為內部或外部命令,可操作程序或批處理文件。“

什麽原因導致出現此錯誤消息,以及解決方案是什麽?

最佳答案

•   Go to ‘My Computer’ > Properties > Advanced Tab >EnvironmentVariables.  
        Environment Variables box will open, View SYSTEM VARIABLES, scroll the list to      ’ PATH ‘ > 
double click ’ PATH ‘ . Add the following line to the end of the PATH  C:\xampp\php
Zend Framework

•   Extract the Zend Framework files to C:\wamp\php\zf.
•   Edit the php.ini file. You will find it at C:\wamp\php\php.ini. 
 Find the line that says ’ include_path ’ and edit the line: 
 Windows: “\path1;\path2″
 include_path = “C:\wamp\php\zf\library”
 •  Open a shell and cd to C:\wamp\www folder and type this:
 C:\wamp\www>C:\xampp\php\ZendFramework\bin\zf.bat create project      
  testproject(project name)


•   Now Copy the Zend Folder from your ZendFramework folder ( C:\xampp\php\zf/library /Zend) into the library folder of your new test project ( C:\xampp\htdocs\testproject\library\Zend

轉載註明原文: Zend框架安裝