Mastodon

Here’s a quick tip on how to disable notices like this one appearing on your site:

Deprecated: Function eregi() is deprecated in…

At the top of your application (bootstrap or index file) just add the following line of PHP:

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

This tells your application to show all errors EXCEPT for Notices and Deprecation errors.  Obviously you can show Notices if you prefer by removing & ~E_NOTICE from that function

Hope this helps!

1
0
Would love your thoughts, please comment.x
()
x