I am using dns_get_record inside a user defined function and do some process inside user defined function.Sometimes dns_get_record takes very long time to process if domain is dead.
Is there a way Php function can return a value if the total process takes more than 30 sec or so. Basically I would like to return control to main program if total user defined function execution time is more than 30 secs. How I can do this in Php?