note 49930 added to function.getimagesize

From: Date: Sat, 12 Feb 2005 16:23:22 +0000
Subject: note 49930 added to function.getimagesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-84895@lists.php.net to get a copy of this message
Note that, if you're going to be a good programmer and use named constatnts (IMAGETYPE_JPEG) rather than their values (2), you want to use the IMAGETYPE variants - IMAGETYPE_JPEG, IMAGETYPE GIF, IMAGETYPE_PNG, etc. For some reason, somebody made a horrible decision, and IMG_PNG is actually 4 in my version of PHP, while IMAGETYPE_PNG is 3. It took me a while to figure out why comparing the type against IMG_PNG was failing... ---- Manual Page -- http://www.php.net/manual/en/function.getimagesize.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49930 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49930&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49930&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49930&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49930&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49930&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49930&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84895) next »