I know there's some examples online of using PHP as a websocket server. I just don't understand how this works.
How can a .php file be constantly listening for connections as if it was a running process?
I've worked with other socket servers in C#, Java, etc. But they were all running applications constantly listening for connections... isn't a PHP page just a static file that runs it's code when it's accessed? Or how does one make a PHP file work as a constant process to listen for connections?
How can a .php file be constantly listening for connections as if it was a running process?
I've worked with other socket servers in C#, Java, etc. But they were all running applications constantly listening for connections... isn't a PHP page just a static file that runs it's code when it's accessed? Or how does one make a PHP file work as a constant process to listen for connections?