Re: curl help or other suggestion

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

 



On Thu, Jun 17, 2010 at 9:05 AM, Michael Alaimo <malaimo@xxxxxxxxxx> wrote:
> I am trying to use register_shutdown_function.  Previous to the script
> shutting down I use curl to grab a website.
>
> Basically I want to know if the user has hit the stop button or left the
> page prematurely.
>
> The only problem is that curl runs and finishes its call before the
> shutdown function is called.  Because of this I  have no way to know if
> the user canceled the request somehow.  Any suggestions?
>
> Mike

I don't know that it will affect cURL, but if you are just looking to
log completed versus abandoned requests, this might help:

http://www.php.net/manual/en/function.ignore-user-abort.php

Andrew

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