Re: wget --spider and ignore_user_abort(TRUE)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I am trying to get a script to run in background no matter what, but I am
> obviously doing it wrong.

1. Have it executed via a shell command.
2. Redirect all output.
3. Append the ampersand.

eg. A commandx such as:

sleep 5  >/dev/null 2>&1 &

would become:

<?php
     exec('sleep 5 > /dev/null 2>&1 &');
?>

-- 
Richard Heyes

HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 1st)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux