This might look like a simple question, but it's boggling my mind: Assume I can't run Daemons, how would I set up a websocket server?
(Details: Apache 2.2.21, PHP 5.3.9, so preferably with PHP)
This might look like a simple question, but it's boggling my mind: Assume I can't run Daemons, how would I set up a websocket server?
(Details: Apache 2.2.21, PHP 5.3.9, so preferably with PHP)
By not wanting daemons I assume you are asking for something that runs in Apache/PHP rather than as a standalone program/server that you have to run.
Note that PHP does not yet have a good option that support the old Hixie WebSocket protocol and the newer HyBi/IETF protocol at the same time (most other languages have a server that supports both).
http://code.google.com/p/phpwebsocket/ only supports the older Hixie protocol. This is good for iOS devices (iPhone and iPads).
http://code.google.com/p/php-websocket-server/ only supports the newer HyBi/IETF protocol which the latest versions of most other browsers support.
If you are willing to consider non-PHP options, these projects can be integrated into Apache and support both revisions of the protocol: