walkor / phpsocket.io

A server side alternative implementation of socket.io in PHP based on workerman.
2.3k stars 508 forks source link

How to run it on a server #257

Closed dermrvn-code closed 3 years ago

dermrvn-code commented 3 years ago

How can I:

  1. use it on a webserver?
  2. use it on a local server?

I hope my question is understandable.

walkor commented 3 years ago

phpsocket.io needs PHP cli but not webserver.

Here is doc for chat example. Just use command php start.php start -d. https://github.com/walkor/phpsocket.io#run-chat-example

dermrvn-code commented 3 years ago

But if I want to use it on a hosted webserver, is it possible?

walkor commented 3 years ago

Sorry, it can not run on hosted webserver.