Validate an image in PHP -
i'm using gd create jpegs files user uploads.
what best way validate image user has uploaded valid?
by valid mean file not corrupt image gd won't like, extension testing client side can upload jpegs/gifs/pngs.
thanks
you use getimagesize. return false
if image not loaded. has support image types.
Comments
Post a Comment