How I can get file type from a file path (ex. C:\folder\image.gif) when someone is trying to "Upload" an image on my server.
I need to make sure that the file is either (JPEG OR JPG OR GIF).
So can someone please provide me with any sample code that can help me verify the uploaded image type in PHP
I get the file path and save it in a var called $imagepath
Thanks in advance.