Installation Issue

hi guys,

I have just download yii setup files and now I am going to create new web application using windows xp command promt. My root directory is C:\XAMPP\htdocs\

when I run following line on command prompt

C:\xampp\framework\yiic webapp myFirstApp

then I am getting following error

"php.exe" is not recognized as an internal or exrernal command,operable program or batch file

please help

thanks in advance

Hi, welcome to the forum.

You have to add php to the windows PATH environment variable. Check step 4 on this page.

Alternatively, you may specify the full path to the php.exe. For example, If your php.exe is located in C:\xampp\php\, then you execute this in command line:

Thanks very much buddy. My problem has been solved. I need little bit help more that how can I create new application in htdocs path rather than this C:\xampp\php\

If your htdocs is in C:\xampp\htdocs try:

C:\xampp\php\php.exe C:\xampp\framework\yiic webapp C:\xampp\htdocs\myFirstApp

<php.exe location> <yiic location> webapp <path of the new web app>

thanks very much sensorario. You have done a great job for me. Hopefully you people will help beginners alot.