Reputation: 1211
I search for a lot of question here and in google also but still didnt get my answer.
i try as you can see in image, i dont know where's the error
My PHP
path as shown in image below,
Any help please
Upvotes: 0
Views: 5870
Reputation: 11
I also faced the same problem.
Error :- Path of the file is not set properly.
Step 1: Go to CMD.
Step 2: Then reach to your desired folder .For Ex:- cd c:/xampp/htdocs/yii/framework
Step 3: In CMD -> path C:\xampp\htdocs\yii\framework ; C:\xampp\php
Step 4: In CMD -> path
Step 5: Now Execute your desired command for yii in cmd -> yiic webapp yii_test
Work Done!
Upvotes: 1
Reputation: 21979
Is the path to PHP's directory in your PATH
? If not you should add this.
In your case I believe the path you need to append will be D:\xampp\php\
.
To update your PATH
on Windows 7/8 you can simply right-click 'Computer', hit 'Properties', then 'Change Settings'. In the 'Advanced' tab there is an 'Environment Variables button'. Scroll the 'System Variables' until you get to Path
and simply append the path like so:
;D:\xampp\php\
.. onto the end of the path. OK out of everything and reopen cmd
, your command should now work.
Upvotes: 4