I am currently in the process of converting a C# application to PHP.
Within this application I have a multithreaded loop that handles incoming packets.
Since PHP does not support multithreading what would be the best way to handle these packets?
The only thing I have managed to come up with so far is to spwan another PHP script from within the first and write the incoming packets to a database that would be polled by an RPC call every X seconds.
Can this be done using PHP sockets alone?
Will I be able to store the packets within the PHP sockets for an extended amount of time insted of having to write the packets to a database?
Or is there another way?