PHP and dealing with a fatal error

Associate
Joined
19 Mar 2005
Posts
326
Location
London, England
Hi guys,

I have a script that uses Pear's Net DNS to look up A records and MX records.

At one point I get a "Fatal error: Maximum execution time of 5 seconds exceeded in D:\xampp\php\PEAR\Net\DNS\Resolver.php on line 996" as it timesout because the DNS server doesn't respond to that DNS request and just takes for ever to timeout (this DNS server's way of handling access denied). I have the execution time set to 5 secs to purely make my testing quicker.

Does anyone know how I get rid of this error and show something more friendly? Googling but not sussing it out.

Example of one of my querys:
PHP:
$resultC = $resolverC->query($domain,'mx');

Thanks,
Shell
 
Back
Top Bottom