How to handle Fatel Error?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
PatelNehal
Forum Newbie
Posts: 21
Joined: Mon Mar 23, 2009 7:27 am
Location: Gujarat, India

How to handle Fatel Error?

Post 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?
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: How to handle Fatel Error?

Post 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
Post Reply