ID: 24930 Updated by: [EMAIL PROTECTED] Reported By: Xuefer at 21cn dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: all PHP Version: 4.3.3RC2 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. http://news.php.net/article.php?group=php.doc&article=969355553 here you are :) Previous Comments: ------------------------------------------------------------------------ [2003-08-04 02:53:23] Xuefer at 21cn dot com Description: ------------ list($width, $height, $type, $imgattr) = getImageSize($filename); is a better to be the first example even better than: [quote] Returns an array with 4 elements. Index 0 contains the width of the image in pixels. Index 1 contains the height. Index 2 is a flag indicating the type of the image: 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF(intel byte order), 8 = TIFF(motorola byte order), 9 = JPC, 10 = JP2, 11 = JPX, 12 ......... [/quote] everytime, i have to read through the whole text in order to get which is which, element 0 means $width, element 1 means $height .... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24930&edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php