how to check a file path is an image or not in php?

bobble

New Member
I have a table that stores file paths of images.documents,pdf etc... My query is\[code\]Select File_Paths from Uploads\[/code\]Now how do I check whether the file path is image or not using PHP... If it is an image i have to view it or else download it.......
 
Back
Top