There are cases when they are useful (for instance when you defined a constant twice or when you use a variable that hasn’t been defined), but there are situations when everything works fine on your site and you don’t really need them. Here’s the code that you should use:
error_reporting (E_ALL ^ E_NOTICE); /* 1st line (recommended) */
NOTE: Many programmers make mistakes while working on large applications so if there are cases when something is not working right on your site and you hided the notice errors, consider turning them on. They might tell you some bugs in your scripts.
BitRepository.com is a web development blog aimed to help designers and programmers by offering tutorials and news from various web technologies. This blog is dedicated to share top quality content for developers, designers, people working in IT in general. Read more