Fatal error: Call to undefined function exif_imagetype() in /home/amear99/public_html/msk-alwalh.tk/view_fdir.php on line
plz help
Fatal error: Call to undefined function exif_imagetype() in /home/amear99/public_html/msk-alwalh.tk/view_fdir.php on line
plz help
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 by misson; 09-09-2011 at 07:53 PM.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.