Closed Thread
Results 1 to 2 of 2

Thread: i have an error in the exif_imagetype() function

  1. #1
    w00w92 is offline x10Hosting Member w00w92 is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    3

    i have an error in the exif_imagetype() function

    Fatal error: Call to undefined function exif_imagetype() in /home/amear99/public_html/msk-alwalh.tk/view_fdir.php on line

    plz help

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,505

    Re: i have an error in the exif_imagetype() function

    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.

Closed Thread

Similar Threads

  1. Replies: 1
    Last Post: 01-08-2011, 12:59 PM
  2. DB function failed with error number 2006
    By sapozhok in forum Free Hosting
    Replies: 0
    Last Post: 02-13-2010, 08:37 AM
  3. Mediawiki Error/function.require
    By bbwitt in forum Free Hosting
    Replies: 2
    Last Post: 03-07-2009, 03:01 PM
  4. error on function
    By faith in forum Free Hosting
    Replies: 4
    Last Post: 04-12-2008, 06:48 AM
  5. Call to a member function ..... ERROR :@
    By mehdi in forum Free Hosting
    Replies: 7
    Last Post: 08-09-2007, 10:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers