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://www.php.net/popen
-- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com ----------------------- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing."
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php