1

I have been using xampp server. I'm trying to make a new project. I have been giving a command,

C:\xampp\htdocs\yii\framework\yiic

It says,

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

I have also set the system variable, path as

C:\xampp\htdocs\yii\framework\yiic

. Whats the problem here?

웃웃웃웃웃
  • 11,829
  • 15
  • 59
  • 91
user983983
  • 158
  • 1
  • 2
  • 11

3 Answers3

1

You need to set the path to php also

check this

Community
  • 1
  • 1
Nauphal
  • 6,194
  • 4
  • 27
  • 43
1

You need add PHP path to system environment or use the direct path of php.exe,just like:

    c:\xampp\php\php.exe yiic webapp c:\xampp\htdocs\yourappname 
toby
  • 21
  • 4
0

This what worked with me:

D:\ProgramFiles\xampp\php\php D:\ProgramFiles\xampp\htdocs\yii\f
ramework/yiic webapp D:\ProgramFiles\xampp\htdocs\ProjectName
Hamzeh Soboh
  • 7,572
  • 5
  • 43
  • 54