ok Posted September 12, 2008 Share Posted September 12, 2008 I have this photo upload now i want to grab the size of this photo. So that i can make an if and else decision if their photo is too big or if the size is fine. What are the built in functions or commands or if you have sample codes please show me Thank you very much. Link to comment https://forums.phpfreaks.com/topic/123921-getting-image-size-with-uploading-the-photo/ Share on other sites More sharing options...
kenrbnsn Posted September 12, 2008 Share Posted September 12, 2008 Look at the function getimagesize() <?php list($width, $height, $type, $attr) = getimagesize("uploadedfile.jpg"); ?> Ken Link to comment https://forums.phpfreaks.com/topic/123921-getting-image-size-with-uploading-the-photo/#findComment-639715 Share on other sites More sharing options...
hamza Posted September 13, 2008 Share Posted September 13, 2008 before uploading a file or image your form have super global variable $_FILES or $_FILE just echo it and in which the size of file or image you can see Link to comment https://forums.phpfreaks.com/topic/123921-getting-image-size-with-uploading-the-photo/#findComment-640218 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.