Lancer un script en tâche de fond en PHP
Tâche de fond
Pensez en plus à escapeshellargs pour éviter des problèmes avec les paramètres de votre script s'il en a...$cmd = 'php toto.php'; if(isset($_SERVER['PWD']) //unix { $nullResult = `$cmd > /dev/null &`; } else //windows { $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run($cmd, 7, false); } ?>
