Re: wget --spider and ignore_user_abort(TRUE)

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

 



Martino Dell'Ambrogio schreef:
> 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

try testing for the request type (i.e. HEAD) and if found don't output
anything at all.

seems like apache (not the user) is shutting down the request as soon
as it recieves the first byte of the request body.

> 
> This has nothing to do with any system command.
> 
> Is it clear now?
> 


-- 
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