Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

Re: [PHP] handling errors From: Jason G. (blair <email protected>)
Date: 09/27/01

Placing an @ symbol before the function name will suppress any errors.
 <email protected>()

At 09:09 AM 9/27/2001 +0200, * R&zE: wrote:
><Original message>
>From: Joseph Bannon <JBannon <email protected>>
>Date: Wed, Sep 26, 2001 at 11:09:39AM -0500
>Message-ID:
><0F3DD2FF27EAD311A5C900508B5C2A670384D9FF <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: renze <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: php-general-unsubscribe <email protected>
>For additional commands, e-mail: php-general-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>