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
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.
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!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.