Cannot run PHP CLI on WAMP on Windows 8

后端 未结 3 1233
难免孤独
难免孤独 2021-01-29 05:05

I have been trying on this for hours i Get the below error

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

3条回答
  •  Happy的楠姐
    2021-01-29 05:44

    You need to add php to your system path as follows:

    • go to system properties
    • chooose advance tab
    • check the system variables
    • choose Path then edit it and add at the end ;C:\xampp\php\

    Note that system variables in Path are separated with ; same thing applies to WAMP all you need is to specify your php binaries folder

提交回复
热议问题