I was wondering... for PHP.. I want to run it as an app and not in a website form...
I was wondering if anybody know how to make PHP stay open and listen on ports for information being sent to it..
I want to use PHP for designing the server for a chat client in C++ that will be sending messages to it..
so does anybody have any examples of PHP listening on a port and either sending it/something back out or taking certain actions when it receives a response from a chat client?
sorry if the question is a little complex i'm just curious if anybody can help.
P.S. I'm also doing it in PHP cause PHP is portable to linux, mac, windows and can take a lot of abuse from online..