Detecting user_abort when using ob_start().

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

 



Hello there,

I have a script which is called using ajax.
This script can take a while executing.

Now it sometimes happens that a user aborts a connection, like stop the ajax request.

This won't stop the php script from executing.
Now i need some way to detect if the user has stoped/aborted the connection.

I tryed to use connection_aborted and/or connection_status.
But this doesn't seem to work or something.

I Tryed to search for a sollution, but not much luck.

Also, i use ob_start() because of headers that needs to be sent and to compress etc..

Thx in advance.

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