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\server.php from shell using XAMPP, is there an alternative for WAMP?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.8to the Variable value field. And each time you open up your command line, just run php using..still keeping in mind that the pageYouAreRunning.php is relative to the current path in your command line.