On Tue, July 17, 2007 12:21 pm, Olav Mørkrid wrote:
> if i do a trigger_error() when running php scripts from the command
> line, each error is echoed twice. this is annoying.
>
> does anyone know how to make each error display only once?
>
> c:\>php -r "trigger_error(\"hello\");"
> PHP Notice:  hello in Command line code on line 1
>
> Notice: hello in Command line code on line 1

http://php.net/set_error_handler

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to