command line locally using wamp

前端 未结 5 1115
南旧
南旧 2020-12-14 04:22

When referring to this post here:

http://net.tutsplus.com/tutorials/javascript-ajax/start-using-html5-websockets-today/

it tells you to run php -q path\\to\\

5条回答
  •  星月不相逢
    2020-12-14 05:07

    It might be useful to register php.exe as an ENVIRONMENT VARIABLE so the command line can recognize the 'php' command instead of needing to enter the full path '\wamp\bin\php\php5.3.8\php' as the command.

    To do this, you can follow the steps outlined on this page: http://windows.fyicenter.com/view.php?ID=60. Except for Step 5, enter the path of WAMP's php.exe instead. For example, just add in $;C:\wamp\bin\php\php5.3.8 to the Variable value field. And each time you open up your command line, just run php using

    php pageYouAreRunning.php 
    

    ..still keeping in mind that the pageYouAreRunning.php is relative to the current path in your command line.

提交回复
热议问题