nid help im new to yii

Hi guys im to in using frameworks… im so interested in feature of yii

hmmm im using xampp on windows vista when im trying to create an skeleton app i've got this problem

C:\xampp\htdocs\yii\framework>yiic webapps mysite

'php.exe' is not recognized as an internal or external command,

operable program or batch file.

nid your help guys thnx in advance

Hi.

You need to add the path to php.exe to your $PATH variable in windows.

tnx  ;D

Quote

Hi.

You need to add the path to php.exe to your $PATH variable in windows.

I am using Xampp as well but for XP.

I added the following lines to 'Path' in 'system variable':

  • C:\xampp\htdocs\yii\framework // this is where yiic.bat resides

  • C:\xampp\php // this is where php.exe resides

But I still got the error like the OP:

php.exe is not recognized as an internal or external command,

operable program or batch file.

I was about to ask for help just now, but decided to have one more search:

sandwhich posted the solution which helped me:

http://www.yiiframew…ookbook/3/#c216

Quote

I had to use full path for the php.exe i.e if "%PHP_COMMAND%" == "" set PHP_COMMAND=F:/Programmid/wamp/bin/php/php5.2.8/php.exe