RE: [PHP] handling errors

From: Date: Wed, 26 Sep 2001 16:18:26 +0000
Subject: RE: [PHP] handling errors
Groups: php.general 
Request: Send a blank email to php-general+get-68893@lists.php.net to get a copy of this message
> 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 This should do it: $size = @GetImageSize("$url"); The "@" symbol suppresses errors. Chris

« previous php.general (#68893) next »