setembro 22nd, 2009
php, executando processo em background
Posted by
Felipe Olivaes in
PHP
…
[code]
$cmd = “/usr/local/bin/php -q /path/arquivo.php > /dev/null & echo \$!”;
exec($cmd);
[/code]
…
[code]
$cmd = “/usr/local/bin/php -q /path/arquivo.php > /dev/null & echo \$!”;
exec($cmd);
[/code]