How to display PHP errors

0
4

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);

LEAVE A REPLY

Please enter your comment!
Please enter your name here