Home PHP How to display php errors
How to display php errors

How to display php errors

I was having a problem with display PHP errors when I write scripts in PHP.

It’s hard to fix those errors when browser only returns “HTTP ERROR 500”. The code below will display errors and what is wrong with your PHP codes.

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);


Write a comment

Sign up for our newsletters.

Do you want to see our new posts?

Enter your email below to get our latest posts! (NO SPAM!)