Execute a PHP CGI script as a background process?
Can I run a PHP CGI script as a background pro开发者_如何学运维cess using exec() ?
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).
精彩评论