Page 1 of 1

How to handle Fatel Error?

Posted: Fri Jun 26, 2009 6:20 am
by PatelNehal
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\mydomainname\PHP_CoreKIT\lib\nusoap.php on line 1761


I am using Web service so it is showing me this error some time, but most of the time they runs perfectly, now I want to show the error page which inform the user that connection timeout instead of this message. I have also divided my code in various classes so this nusoap class is used in many other classes. How can i do that?

Re: How to handle Fatel Error?

Posted: Sat Jun 27, 2009 3:49 pm
by Darhazer
Especially for the time limit, you can register a shutdown function and in that function to check the connection status
0 - NORMAL
1 - ABORTED
2 - TIMEOUT
Most fatal errors however can not be catched

P.S. If display errors is off, PHP 5.2 will return HTTP 500 status, so you can set your 500 error page