note 28363 modified in ref.exec by tomsommer
| From: | tomsommer@php.net | Date: | Sat, 03 Jul 2004 14:58:43 +0000 |
| Subject: | note 28363 modified in ref.exec by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72471@lists.php.net to get a copy of this message | ||
I made my script work in the background like this:
function start_shell ($cmd) {
exec('nohup "'.$cmd.'" > /dev/null &');
}
--was--
I made my script work in the background like this:
function start_shell ($cmd) {
exec('nohup "'.$cmd.'" > /dev/null &');
}
// thanks to the users at eksperten.dk
http://php.net/manual/en/ref.exec.php