tags:

views:

142

answers:

1

Hello,

Can I run a PHP CGI script as a background process using exec() ?

+1  A: 

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

Frenck