This works for me...
comment out the line "error_reporting" in your php.ini file...
if you are hosted with someone who has this set to 2047 or some other value, ask them to comment this line out... so that it says "no value" in your phpinfo() page...
You will not only get the errors and line numbers that break in your code... Notices, Warnings, etc... will be taken out...
If for any reason you need to turn these on you can do so in your php code using...
error_reporting()
* inside the () you will need a value... A complete list of values are here:
http://www.php.net/manual/en/function.error-reporting.php
For the server side and for a description of each value go here:
http://www.php.net/manual/en/phpdevel-errors.php
Hope this helps...