I have a website that lets user select test scripts from radio buttons, and after submitting the desired test to the remote server, using PHP:
1. It inserts sends a row into MySQL database in the test_activity_log table, with id, username, test name, gateway name, and timestamp.2. It then sends a `ssh2_exec
Everything above I already have working, however, in the case when multiple users are executing scripts from the webpage simultaneously, I need to find a way to queue them up in order and execute them one after another. What would be the best way to do this?
Any ideas would be much appreciated.