Re: Altering the error_reporting
| From: | Diogo Neves | Date: | Wed, 03 Sep 2008 19:56:14 +0000 |
| Subject: | Re: Altering the error_reporting | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279444@lists.php.net to get a copy of this message | ||
On Wed, Sep 3, 2008 at 6:55 PM, n3or <info@n3or.de> wrote:
> admin@buskirkgraphics.com schrieb:
>
>> 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.
>>
>>
>>
> Hi,
> you could define your own error handler:
> http://www.php.net/manual/en/function.set-error-handler.php
>
Parse Error on a error handler? it's possible?
>
> --
> Viele Grüße
>
> Dominik Strauß - www.n3or.de
> Webentwicklung, PHP und Linux
>
> Mobil: 0178 4940605
> Internet: www.n3or.de
> E-Mail: info@n3or.de
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Thanks for your attention,
Diogo Neves
Web Developer @ SAPO.pt by PrimeIT.pt