Today is the first time I've ever used connection_aborted, and it doesn't work. There are some bug reports for it dating back to 2002. I'm using PHP 4.3.2. The following script doesn't do what it's supposed to:
<?php HEADER('Content-type: text/plain'); Set_Time_Limit(0); //this you know what gonna do Ignore_User_Abort(True); //this will force the script running at the end $f = fopen("/tmp/aborted.log", "w"); fwrite($f, "Starting...\n"); $count = 0; While(!Connection_Aborted()) { fwrite($f, "$count: Going\n"); $count++; fflush($f); Echo "\n"; //this will save de while Flush(); //Now php will check de connection Echo "My chat...."; Sleep(1); } fwrite($f, "Aborted\n"); fclose($f); ?> I got that script from php.net's manual page for connection_aborted(), and modified it to write out to a log file. "Aborted" never ever gets printed to /tmp/aborted.log. Hope this gets fixed ASAP. - Nolan -- http://www.semanticgap.com/people/sneakin/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php