Welcome Guest, Not a member yet? Register   Sign In
Best Practice for Error handling
#1

(This post was last modified: 04-09-2016, 04:19 AM by ardavan.)

Hey,

I wonder how to avoid "A PHP Error was encountered" when user enter class/method manually to the url ?

actually i want to learn how can handle the errors and show the nice page to the users Also avoid to display my directory to the hackers  Dodgy

In my index.php file I've added
Code:
define('ENVIRONMENT', 'production');

Thanks for your time and helps guys
Have a good day  Wink
Reply


Messages In This Thread
Best Practice for Error handling - by ardavan - 04-09-2016, 04:18 AM
RE: Best Practice for Error handling - by PaulD - 04-09-2016, 03:39 PM
RE: Best Practice for Error handling - by ardavan - 04-09-2016, 07:27 PM
RE: Best Practice for Error handling - by PaulD - 04-10-2016, 08:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB