I was wondering is there any way in PHP to set a time limit on a PHP function. Say if the function is not done in a certain amount of time the function execution is cancelled and the function returns nothing.
What I want to do is start a heavy query and if the query doesn't finish in a certain amount of time have the query stop and the function exited.
What I want to do is start a heavy query and if the query doesn't finish in a certain amount of time have the query stop and the function exited.




