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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.