HI
how do i check to see if a file is an image?
thanks in advance.
use GetImageSize() to get the file's dimensions. If the dimensions are empty, it's not an image.
function isImage($file) { $dim = GetImageSize($file); return $dim; }
oh, smart! 🙂
thanks
Glad I could help.
How to check if an image is .gif or .swf file???