On Tue, 04 Nov 2008 10:03:11 +0000, Richard Heyes wrote: >> 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. This is not what I need, but thanks. The code snippet I wrote is just an example of the PHP connection handling going wrong (or not as I want to). The real script doesn't sleep and does much more then executing a system command. The question here is: why a PHP script called via 'wget --spider' through Apache/2 gets killed as soon as the HTTP reply code is sent, even if ignore_user_abort() is set? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php