Display PHP error messages

// Report all PHP errors ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(-1); // Report all errors except E_NOTICE & E_STRICT ini_set('display_errors',1); error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); // Disable all PHP errors error_reporting(0);
The best way to display php error messages.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.