Search code examples
phphtmlwampwampserverphpwebsocket

how can I run a websocket server. I'm using WampServer 2.1


it says it clearly in the heading. I want a way to run a websocket server in apache server that comes with Wamp 2.1

update

check this page http://net.tutsplus.com/tutorials/javascript-ajax/start-using-html5-websockets-today/ look at step 9 where it describes how to run a websocket server. that's for XAMPP. I want to do it in WAMP. Sorry if it was unclear.


udate 2

cmd on win 7

I tried to run it as in the photo but ,as you see, I'm doing that wrong. sorry guys I'm not good at command lines. could you please show me the exact way to run the websocket-server


update 3

cmd accessing php.exe

another trial and nothing happened.


Solution

  • The only thing you need is a shell/terminal/command line (whatever your operating system of choice calls it) in which you type:

    php -q /path/to/your/script.php
    

    Where php is the path to the PHP executable followed by the option -q followed by the path to your script. This doesn't really depend on (X/W/M)AMP much.