Re: handling errors
| From: | * R&zE: | Date: | Thu, 27 Sep 2001 07:09:35 +0000 |
| Subject: | Re: handling errors | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68952@lists.php.net to get a copy of this message | ||
<Original message>
From: Joseph Bannon <JBannon@advparadigm.com>
Date: Wed, Sep 26, 2001 at 11:09:39AM -0500
Message-ID: <0F3DD2FF27EAD311A5C900508B5C2A670384D9FF@apds_exp3.advparadigm.com>
Subject: [PHP] handling errors
> How do I turn off the error messages that appear at the top of the page? I
> have this function below that if an image is not there for $url, it give a
> "warning".
>
> $size = GetImageSize("$url");
>
>
>
> Example error message below...
>
> Warning: getimagesize: Unable to open
> 'http://www.yahoo.com' for reading.
> line 28
>
>
> Joseph
</Original message>
<Reply>
Ofcourse it might just be a strange idea stuck in my head for some
reason, but you know what helps? Writing code that doesn't produce
any errors or warnings. Supressing warnings by just not showing them
doesn't really make your code very reliable does it?!
</Reply>
--
* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: renze@datalink.nl
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««