if ($image_type == "image/pjpeg")
{
STATEMENTS...
}
elseif($image_type == "image/gif")
{
STATEMENTS...
}
I'm writing an image upload script, and need to determine the extension of the uploaded image.
The above code is supposed to do that.
My question however is, how does $image_type come about in the code? Is it a standard php function?
Thanks.