I have this user form. The user will submit data. Then with that data, I want to send that data over to a PHP script which will run in the background. Reason being, is because the script has a lot of sleeps, etc, and I don’t want to keep the user waiting.
So the basics of my question is: How can I run a PHP script in the background, and how can I pass a parameter (like GET) to it?
You can use
execto run your background script. Use something likeIn your script bg.php you can get the passed parameters from the array
$argv