On dinsdag 2 december 2003 3:40 Dimitri Marshall told the butterflies: > Hi there, > I've seen the code somewhere but can't remember what it is exactly. > Basically I need to know what the PHP is to get the picture > width and height. > > I tried: > > $pic = $_FILES[$objectNumber]; > $width = $pic['width']; > $height = $pic['height']; > > ... with no success. > > Any help is greatly appreciated. > > Thanks, > Dimitri Marshall
There's this "getimagesize()" function, it will tell you everything about an image that you need to know. Even who made it, if that's in the exif headers :P. Wouter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php