Zend Framework generates project error

I am new to Zend Framework. I read the Zend Framework doc. Here I saw that the job of Zend Framework is to include the path in my php.ini, I believe this is done because in my php info I saw that the include path is C: \ www \ zend_frame \ library

Also the doc says that in order to create the project, I have to run:

C:\> zf.bat create project quickstart

      

I want to create a project in C: \ wamp \ www

In my command shell, I ran:

C:\>wamp\www> zf.bat create project quickstart

      

But I got an error (see below).

Then I tried another way:

C:\>wamp\www> C:\wamp\zend_frame\bin\zf.bat create project quickstart

      

I got the same error here:

Php.exe is not recognized as an internal or external command, operative program, or batch file

I also set the path in settings My Computer

+2


source to share


1 answer


The Zend Framework zf.bat

script assumes that it can run " php.exe

" without specifying the full path to this executable, and it will be found because you installed PATH

in that directory:

SET PATH=%PATH%;C:\wamp\bin\php

      

Depending on the WAMP version, it php.exe

may be in a subdirectory for the PHP version. In this case, you need to use a command similar to this:



SET PATH=%PATH%;C:\wamp\bin\php\php5.3.0

      

You should be able to figure it out here.

+4


source







All Articles