JustinK101 Posted April 5, 2010 Share Posted April 5, 2010 How do I get an image file size? For example I have a path: $image_path = "/usr/local/images/myimage.png"; Is there something like: $filesize = getfilesize($image_path); echo $filesize; //65430 bytes Thanks. Link to comment https://forums.phpfreaks.com/topic/197677-get-image-file-size-from-path/ Share on other sites More sharing options...
GingerRobot Posted April 5, 2010 Share Posted April 5, 2010 Err, yes. filesize. You should probably try looking in the manual if you want to find out what functions are available. Contrary to popular belief, it is actually a pretty good source of information. Link to comment https://forums.phpfreaks.com/topic/197677-get-image-file-size-from-path/#findComment-1037410 Share on other sites More sharing options...
JustinK101 Posted April 5, 2010 Author Share Posted April 5, 2010 GingerRobot, Thanks, I did a Google search for php get image filesize, but couldn't find anything. Thanks for the help. Link to comment https://forums.phpfreaks.com/topic/197677-get-image-file-size-from-path/#findComment-1037414 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.