How To Run PHP From Windows Command Line in WAMPServer

前端 未结 11 709
予麋鹿
予麋鹿 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:30

    That is because you are in 'Interactive Mode' where php evaluates everything you type. To see the end result, you do 'ctrl+z' and Enter. You should see the evaluated result now :)

    p.s. run the cmd as Administrator!

提交回复
热议问题