i have an error in the exif_imagetype() function

Status
Not open for further replies.

w00w92

New Member
Messages
3
Reaction score
0
Points
0
Fatal error: Call to undefined function exif_imagetype() in /home/amear99/public_html/msk-alwalh.tk/view_fdir.php on line

plz help
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
This thread is more suited for the "Programming Help" subforum.

As the error message says, exif_imagetype isn't available. You'll need to use a different method. The Fileinfo extension and (deprecated) mime_content_type function don't currently appear to be available on the free hosts. You can use getimagesize from the GD extension, which gets more than just the image size.

Note that getimagesize may not detect corrupted/invalid image files. To be sure a file is really of a type, you'd need to use an image library (e.g. the aforementioned GD) to parse the file and look for errors.
 
Last edited:
Status
Not open for further replies.
Top