Re: [PHP] wget --spider and ignore_user_abort(TRUE)

2008-11-04 Thread Martino Dell'Ambrogio
On Tue, 04 Nov 2008 13:24:41 +0100, Jochem Maas wrote: > try testing for the request type (i.e. HEAD) and if found don't output > anything at all. This is a nice workaround and works perfectly, thanks! > seems like apache (not the user) is shutting down the request as soon as > it recieves the f

Re: [PHP] wget --spider and ignore_user_abort(TRUE)

2008-11-04 Thread Martino Dell'Ambrogio
On Tue, 04 Nov 2008 11:59:20 +, Richard Heyes wrote: >> I need the PHP script to keep running until the end) > > Until the end of what? Time? Until the end of the script. > If you want your HTTP request to finish and > a script to continue regardless then use the method I suggested, an > sta

Re: [PHP] wget --spider and ignore_user_abort(TRUE)

2008-11-04 Thread Martino Dell'Ambrogio
On Tue, 04 Nov 2008 11:37:15 +, Richard Heyes wrote: >> 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? > > A script ending naturally is not the same as a user abor

Re: [PHP] wget --spider and ignore_user_abort(TRUE)

2008-11-04 Thread Martino Dell'Ambrogio
On Tue, 04 Nov 2008 10:03:11 +, 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.

[PHP] wget --spider and ignore_user_abort(TRUE)

2008-11-04 Thread Martino Dell'Ambrogio
Hi there, I am trying to get a script to run in background no matter what, but I am obviously doing it wrong. Here is the entire code: The file /tmp/aborting get touched if I abort the connection in a browser, or if I run "wget blabla/script.php" and kill wget... in fact it works perfectly