I have an HTML form that submits to a PHP page that initiates a script. a script can take anywhere from 3 seconds to 30 seconds to run - the user does not need to be around to complete this script.
Is it possible to initiate a PHP script, immediately print โThank youโ to the user (or something else) and let them continue to have fun while your script continues to work?
In my specific case, I submit form data to a php script, which then sends the data to many other locations. Waiting for the success of all posts is currently not in my interest. I just wanted to run a script, let the user go and do whatever they like and what he does.
source share