I'm just starting to use sockets to communicate with my Flex application, because I need a quick connection between the client and my server. I looked at PHP sockets, but since PHP was not running on the server this way (you can, but I feel this is disapproving) I'm not sure if PHP is the best way to communicate using Flex sockets.
My application requires the use of quick connection with the server, because it will include features such as private chat for other users, and remote control of the flex client from the server.
Should I use PHP sockets in my situation, or should I find an alternative language or even an alternative to sockets? My concern is that I will start using PHP sockets, but it will not be able to handle the load. Speed ββcan also be a problem when using PHP.
Edit:
Thanks for the answers, this is very much appreciated. As I can understand, PHP is stable when it comes to using sockets, but the language was intended only for use in a request / response environment, as Benson said.
Thanks to Cornel, a great alternative to my situation when using Flex with sockets was listed as BlazeDS , using Java instead of PHP.
source share