Using PHP to find an image's width & height

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
haptic
Forum Newbie
Posts: 11
Joined: Fri Sep 08, 2006 7:21 pm

Using PHP to find an image's width & height

Post by haptic »

Hi,
I have a simple script that allows you to upload images to a server. How can I grab the width and height of the image after it is uploaded?

Thanks!
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Code: Select all

getimagesize()
:wink:
haptic
Forum Newbie
Posts: 11
Joined: Fri Sep 08, 2006 7:21 pm

Post by haptic »

thank you very much, I really appreciate your help.
Post Reply