开发者

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜