Re: wget --spider and ignore_user_abort(TRUE)
| From: | Martino Dell'Ambrogio | Date: | Tue, 04 Nov 2008 12:11:45 +0000 |
| Subject: | Re: wget --spider and ignore_user_abort(TRUE) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-282837@lists.php.net to get a copy of this message | ||
On Tue, 04 Nov 2008 11:59:20 +0000, 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
> start a shell process going.
I insist :) sorry. You didn't understand what I am doing, probably
because of my ESL...
- I have a PHP script
- this PHP script has X sequential functions
- every function must be executed
- if I open the page (GET request), all is fine
- if I open the page then stop the client connection while the script is
still running, all is fine (client sends an RST, ignore_user_abort kicks
in, script goes through all of its X functions then exits at the end of
the script)
- if I use wget --spider (HEAD request) the script exits just after the
first output, all the functions below never get executed
This has nothing to do with any system command.
Is it clear now?