fbpx
Home  /  Blog  /  News  /  The best way to display PHP error messages

The best way to display PHP error messages

Report all PHP errors

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

Report all PHP errors except E_NOTICE & E_STRICT

ini_set('display_errors',1); 
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);

Leave a Reply

Your email address will not be published. Required fields are marked *

We are a young team of professionals and internet lovers who specialise in the development of professional websites and premium plugins for WordPress and Joomla! CMS.
Copyright © 2019 Web357. All Rights Reserved.
Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries.
Web357 is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.