note 79896 deleted from function.getimagesize by felipe

From: Date: Tue, 18 Dec 2007 17:33:49 +0000
Subject: note 79896 deleted from function.getimagesize by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133755@lists.php.net to get a copy of this message
Note Submitter: Anonymous Reason: 1 ---- Instead of using "die('text')", You could just use an exit statement and a echo statement. if($width>275 || $height>275) { echo "The image you attempted to upload does not meet the size requirements"; exit(); } Personally, I find that a bit cleaner.

« previous php.notes (#133755) next »