Re: handling errors

From: Date: Wed, 26 Sep 2001 20:01:36 +0000
Subject: Re: handling errors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68915@lists.php.net to get a copy of this message
Joseph Bannon wrote: > have this function below that if an image is not there for $url, it give a > "warning". > $size = GetImageSize("$url"); Just use > $size = @GetImageSize("$url"); but to stop display of error for all functions: error_reporting (0); the opposite, reports EVERYTHING, even "bad code" (like undeclared variables which is quite a security issue ;) error_reporting (E_ALL ^ E_NOTICE); -- PHP Developer, home: http://www.moijk.net | work: http://www.coretrek.com symlink: Creates a symbolic link | http://www.php.net/manual/en/function.symlink.php

« previous php.general (#68915) next »