To ignore undefined variable warnings, use
Code:
<?php
//Insert the un-remarked line into the very top of your index.php *OR* the confic.ing.php file that is included in all other PHP files of the site you wish to eliminated junk error reports.
error_reporting(E_PARSE); //Best for a running site. Still shows critical PHP parsing errors.
//error_reporting(E_WARNING & E_PARSE); //Ignores garbage errors.
//error_reporting(E_ALL); //The PHP Default.
Just add it at the top just after the <?php starter. You can edit the PHP.ini or PHP.conf, however, this is preferred as it only afects the page (or set of pages) the command is insterted into. Some PHP scripts require the other errors to operate properly.
Hope that helps
