lilman Posted April 21, 2007 Share Posted April 21, 2007 I am working on this upload script, it will upload images to my server. I want to know before I upload it into my database the width and height of the image. I am using variables like: $HTTP_POST_FILES['userfile']['size'] and I was wondering is there some built in feature that will tell me the height and width of the image? Link to comment https://forums.phpfreaks.com/topic/48049-width-and-height-of-a-file-being-loaded/ Share on other sites More sharing options...
paul2463 Posted April 21, 2007 Share Posted April 21, 2007 have a look here at the <a href="http://uk2.php.net/manual/en/function.getimagesize.php"> MANUAL </a> for the function getimagesize() Link to comment https://forums.phpfreaks.com/topic/48049-width-and-height-of-a-file-being-loaded/#findComment-234848 Share on other sites More sharing options...
dustinnoe Posted April 21, 2007 Share Posted April 21, 2007 <a href="http://us.php.net/imagesx">imagesx()</a> <a href="http://us.php.net/imagesy">imagesy()</a> If you have GD library installed. Link to comment https://forums.phpfreaks.com/topic/48049-width-and-height-of-a-file-being-loaded/#findComment-234854 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.