getting the width and height of a images

From: Date: Thu, 27 Jul 2000 16:26:19 +0000
Subject: getting the width and height of a images
Groups: php.general 
Request: Send a blank email to php-general+get-8437@lists.php.net to get a copy of this message
hi, for those who awserd my other question about creating a images. thanks , that works now. (I should have looked better in the big manual,cause it is there. I didn't know that fopen try's to create the file if it is not yet there.) but here is the new problem, And I hope I look the manual hard enough so that nobody can say, "look the manual there and there". I'm using <input type=file .... the let a user upload a picture. when submitting the form I check the size and the file type(since I only want gif or jpg) this is working all fine. But I want to write the height en width in the database table as well as the size and the file name I gave it. the variable come with a <input type=file name=picture_data> are automaticly picture_data_name picture_data_size picture_data_type once I found a array where the width and height where in, but I don't know what it was : (. so I need to know the picture width and height so I can store this information in a database. who can fresh up my memory? kind regards Jeroen Olthof (from holland)

« previous php.general (#8437) next »