A user runs a PHP script (A) from my website. I want this script to check if another script (B) is already running on the server. If not, then script A should execute script B in a way in which the script continues to run on the server without the user having having to wait for it to finish.
What is the best way to do this?
(please let me know if this is not clear enough)