Possible Duplicate:
php in background exec() function
After a certain script runs on website I want to do a bit of processing in the background which could take a little long to run on the page request.
I heard you can do this by using the exec() method to run a PHP script.
If this is a good way to do it how do I pass a query string to PHP script with the exec() method?
EDIT:
It’s not a duplicate because the post you’re referring to doesn’t deal with my question about query string/argument passing.
If you want to run a PHP script in the background using PHP, then you can do the following:
$param is a variable you want to pass into the file.