How To Run PHP From Windows Command Line in WAMPServer

前端 未结 11 716
予麋鹿
予麋鹿 2020-11-22 04:58

I\'m new to php and wanted to run php from command line. I have installed WAMP and set the \"System Variables\" to my php folder ( which is C:\\wamp\\bin\\php\\php5.4.

11条回答
  •  再見小時候
    2020-11-22 05:21

    just do these steps if you don't need your old php version:

    • open wamp and right click on wamp manager than go : tools/Change PHP CLI Version than change php version to latest
    • another time right click on wamp manager than go : tools/Delete unuserd versions and delete the oldest version which your system insist on it to be your pc php version :D
    • go to control panel/user account/change my environment variables and in PATH variable click edit and add your latest php version path which is in your wamp server bin folder
    • close all command lines or IDEs and restart them and check for php -v

    this works well

提交回复
热议问题