Skip to content

orangeable/php-websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

PHP WebSocket

Enable websockets with PHP to create a simple chat room.

Start the websocket server:

php -q websocket.php [your-domain] 9600

Note: You can replace port 9600 with any available port on your system.

To run the PHP script in the background on a Ubuntu server, use the following command:

nohup php websocket.php [your-domain] 9600 &

For the client-side JavaScript portion:

JavaScript chat room

About

Enable websockets with PHP to create a simple chat room.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages