Placing an @ symbol before the function name will suppress any errors.
@GetImageSize()

At 09:09 AM 9/27/2001 +0200, * R&zE: wrote:
><Original message>
>From: Joseph Bannon <[EMAIL PROTECTED]>
>Date: Wed, Sep 26, 2001 at 11:09:39AM -0500
>Message-ID: 
><[EMAIL PROTECTED]>
>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: [EMAIL PROTECTED]
>-- W: +31 23 5326162
>-- F: +31 23 5322144
>-- M: +31 6 21811143
>--
>-- Stationsplein 82
>-- 2011 LM  HAARLEM
>-- Netherlands
>--
>-- http://www.datalink.nl
>-- 
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to