I have described it in various places around the Internet that the HTML5 web cache does not work well with PHP, This is just suitable for PHP nature to use with them. On the other hand, I see many tutorials for using PHP with WebCockets and Ive noticed some PHP websbury implementations such as
So any of the websockets with PHP There is no definitive information on using Are they worth experimenting with PHP, what are the advantages / disadvantages of using them in PHP against Java or Python, and why have I read so many people that they do not work well together?
The problem is that WebSockets are designed for long running threads / processes Maintains more event-driven connections, while PHP (and this Apache group) was designed around the short-term single process procedural pattern (e.g., and session single threaded).
It is not possible to write a web server server implementation in PHP, I know that at least one project exists (but note that even this example goes from the command line, Not through So when it is possible in PHP, you have to go through a different server process (from Apache) anyway, and if you are like hosting that allows different server processes then It is easy to write WebSockets code in an event that is designed for event-based programming. If you are not planning to serve thousands of concurrent duplex connections, then it is likely that you are better with a combination of AJAX and your PHP back-end. mod_php ) but it is likely that the PHP implementation of WebSocket is incompatible with the installation of cheap / shared hosting, where PHP is most commonly used.
Comments
Post a Comment