I've just learned how to setup and start a web-socket server using Ratchet.
I've learned how to start the script using a command from the terminal and the script keeps running forever.
What I want to know now, is how can I start and stop that script (the web-socket server) using php code, not terminal, So that I can have a button to start and stop the web-socket server whenever I want ?
This question might seem naive, but I don't have a clue on how to this, I am new to Ratchet and web-socket.