Re: Altering the error_reporting

From: Date: Wed, 03 Sep 2008 21:44:39 +0000
Subject: Re: Altering the error_reporting
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-279456@lists.php.net to get a copy of this message
This seems like a futile activity. It's a waste of time to have to hunt down an error if you can be told where it is. I suggest spending time improving coding standards that error chasing. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com admin@buskirkgraphics.com wrote: > I am looking for a way to alter the error_reporting(E_All) > This displays > Parse error: parse error, unexpected '}' in /var/www/html/test.php on line 7 > > I want to remove the file location and line number from the error > to only produce > Parse error: parse error, unexpected '}' > > Why? You may ask. > > I am writting a code tester in php but i do not want to display the "in" portion. > This will make you find the error on your own. As a learning tool. > > Understand I have error reporting off in the php.ini file and call the errors in the php script > with ini_set('display_errors', 1);. > > I am sure this is doable I just cant figure out how to do this without altering the php.ini > file. > >

« previous php.general (#279456) next »