zang8027 Posted April 2, 2008 Share Posted April 2, 2008 ok well i got my image to upload into my images/ folder and display on my catalog. I was wondering how to limit the size of the image. I want the image to be 80x80 // Define place image is going to be stored $moveimg="images/"; $tempFile=$HTTP_POST_FILES['uthumb']['tmp_name']; $destination=$HTTP_POST_FILES.$moveimg['uthumb']['name']; copy($tempFile,$destination); //Define our own name for use $newthumb=$HTTP_POST_FILES['uthumb']['name']; Link to comment https://forums.phpfreaks.com/topic/99214-limiting-size-of-image/ Share on other sites More sharing options...
trq Posted April 2, 2008 Share Posted April 2, 2008 take a look at getimagesize. Link to comment https://forums.phpfreaks.com/topic/99214-limiting-size-of-image/#findComment-507645 Share on other sites More sharing options...
trq Posted April 2, 2008 Share Posted April 2, 2008 ps: $HTTP_POST_FILES has long been depricated in favour of $_FILES. Link to comment https://forums.phpfreaks.com/topic/99214-limiting-size-of-image/#findComment-507646 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.