Can I run a PHP CGI script as a background process using exec() ?
1 Answer
You could try it to start it as an linux background process using exec().
You could try this:
exec('/usr/bin/php /path/to/your/script.php &');
The '&' tell's linux to start this command in the background.
Note: You lose control over your executed script at that point and it may not work with all hosts (especially shared host envoirements).
max_execution_timeconstraints which will prevent any long term running... You should really clarify what you need this for.