Re: Error handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Ditty wrote:
> I am trying to add some error handling to my code.  Instead of
> reinventing the wheel, I searched and found the code below.  For the
> most part, it seems to work.  When I have an error, it doesn't get
> shown.  However, I don't get any output.  I tracked it down to the
> $errno.  It is outputting a number where the switch statement is
> expecting words.   Short of typing an array converting number to
> words, what am I missing/doing wrong?

You also want to consider just giving the user a generic error message
and saving the full detailed error for the admin/developer. The details
in error messages are often useful in finding vulnerabilities in an app.

Roberto

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux