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

前端 未结 10 1278
后悔当初
后悔当初 2020-11-29 08:24

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

Why does that error occur even though

10条回答
  •  死守一世寂寞
    2020-11-29 08:45

    If you have installed WAMP server, then your path can vary. For example, I installed WAMP and the path to my php.exe turned out to be:

    C:\wamp\bin\php\php5.5.12\php.exe
    

    To make it work, I entered the following path in the PATH variable of the System Variables:

    C:\wamp\bin\php\php5.5.12
    

    Once done, I restarted command prompt and everything worked fine.

    So the path can vary depending upon how you installed PHP. If you would like to install WAMP server and have it install other essential packages like PHPMyAdmin, etc. you may do so from: wampserver.com

提交回复
热议问题