"php.exe is not recognized as an internal or external command", this was the message i received when i tired to install the yiic framework for the first time.
i figured it out eventually and here are the details:
you can solve this in two ways.
first method : edit the yiic.bat file.
you can modified the yiic.bat file in \YiiPath\framework\yiic.bat
find the path where php.exe resides on your disk, and simply add the line
cd C:\Program Files\PHPexeFolder\
on top of
%PHP_COMMAND% "%YII_PATH%yiic" %*
now save the yiic.bat file and run it.
second method : add the path to the system variables.
right click "my computer" go to "system properties" under "advanced" tab, click on "environment variables"
under "system variables" find for the variable named "PATH" and click on "Edit" button
in "Variable Value" append the php.exe path with a semi-colon like below (without the inverted commas)
";C:\Program Files\PHPexeFolder\"
Hope this helps anybody![:)]()
Ganna..
i figured it out eventually and here are the details:
you can solve this in two ways.
first method : edit the yiic.bat file.
you can modified the yiic.bat file in \YiiPath\framework\yiic.bat
find the path where php.exe resides on your disk, and simply add the line
cd C:\Program Files\PHPexeFolder\
on top of
%PHP_COMMAND% "%YII_PATH%yiic" %*
now save the yiic.bat file and run it.
second method : add the path to the system variables.
right click "my computer" go to "system properties" under "advanced" tab, click on "environment variables"
under "system variables" find for the variable named "PATH" and click on "Edit" button
in "Variable Value" append the php.exe path with a semi-colon like below (without the inverted commas)
";C:\Program Files\PHPexeFolder\"
Hope this helps anybody
Ganna..