I have a function in my application that does a large query on my database.
In certain instances the query will take to long to return and will reach
the max execution time set in PHP.ini.  This is ok though, it's already set
to 90 secs and I don't want it any longer than that.  What I would like is
to have a way that I can time a function.  If the function takes to long to
return data, kill it and follow some other path in my app to let the user
know what's going on.  What I'm trying to avoid is the warning from PHP
saying that the script reached max execution time.  The user gets all
confused and then I get help desk calls.  There has got to be another way.
Any ideas?

- Anthony

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to