PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, April 13, 2022

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

 April 13, 2022     html, php, phpwebsocket, wamp, wampserver     No comments   

Issue

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 href="http://net.tutsplus.com/tutorials/javascript-ajax/start-using-html5-websockets-today/" rel="nofollow noreferrer">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.



Answered By - deceze
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing