sign in


Forgot your password?


Why sign up?
- One account for five websites!
- Free access to Premium Codes
- Acess to cool web tools
- Ask and answer questions
- Stay ahead of other web developers
- and MUCH MORE!

Feel The Power

Php Code: Error Handler Function

It is not a professional work that your page failed because of unpredicted errors. You should handle all possible cases.
This script is a function of handling errors. We have made a mathematical example for this function called 'Factorial'. When the input is not in correct format, the script trigger an error manually to the user and jumps from failure.
You can manage all error types by this function, except some critical ones which PHP doesn't allow to handle them manually.

If you don't know how to use this code or need more information Click here!

Online Users: 4
Total Online Users: 112
Recent Members: yuri , Ahmadullo, Ruqyahstor, Steven12345, dragoncitya
Twitter LinkedIn Youtube

Link to us:


Please put this code in your page.