Page 2 of 2

Posted: Fri May 25, 2007 7:25 pm
by JellyFish
What should I do with getimagesize()?

Code: Select all

if (getimagesize($path))
{
//it's an image path
}
?

Posted: Fri May 25, 2007 7:58 pm
by John Cartwright
If getimagesize() returns false, it is not a valid image, otherwise it is.