Here's the short version.
say you want to write large file or do a large mysql query, that query may take 30-40 seconds (not unreasonable) or perhaps just 5.
But is there a way to have another independent thread that does a scriptTimeout on that lenght of time and say interrupts the socket connection to mysql? so in other words:
mysql_query($compexSQL) but if it takes over 5 seconds interrupt and run a subroutine
??
PHP can do cool stuff, never hurts to ask :-)
Sam