Re: [PHP] detaching and running php processes in the background

2003-11-21 Thread Eugene Lee
On Fri, Nov 21, 2003 at 03:40:05AM -0700, Gary C. New wrote: : : What is the best way to detach and run a command line based php script : in the background from a web-based php script, without the need for : reporting? How about exec('command &') ? -- PHP General Mailing List (http://www.php

Re: [PHP] detaching and running php processes in the background

2003-11-21 Thread Burhan Khalid
Gary C. New wrote: What is the best way to detach and run a command line based php script in the background from a web-based php script, without the need for reporting? Try something like : if (!($handle = popen("script.sh 2>&1 > /dev/null &", "r"))) { echo "Couldn't run process"; } http://w