Re: Error handling
| From: | Neil Freeman | Date: | Tue, 18 Dec 2001 11:00:33 +0000 |
| Subject: | Re: Error handling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78054@lists.php.net to get a copy of this message | ||
What warnings are you receiving? Many can be avoided by doing various
checks:
e.g.
if (!isset($some_variable))
...some error code
else
...all is well
others which may be useful:
function_exists()
file_exists()
HTH
Neil
Yoel Benitez Fonseca wrote:
> Hi!
>
> There is in PHP some way to handle errors like in other languages,
> I mean, something like this:
>
> .
> .
> .
> try to do
> ...
> if error then do ...
> .
> .
> .
>
> I'm tired of reciving warnings :-(
>
> --
> Yoel Benitez Fonseca
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> ***************************************************************
> This message was virus checked with: SAVI 3.52
> last updated 17th December 2001
> ***************************************************************
--
--------------------------------
Email: neil.freeman@asa.co.uk
neil_freeman@yahoo.com
--------------------------------