I am using the following code from the php manual

if (exif_imagetype('$uploaddir.$chkmd5return.".png"') != IMAGETYPE_PNG) {
						unlink('$uploaddir.$chkmd5return.".png"');
						echo "That wasn't a .png file!";
					}

For some reason I am getting this error:
Call to undefined function: exif_imagetype()

I am using php 4.3.10

Thanks for the help...

    Hi,

    also from the manual

    Requirements:

    Your PHP must be compiled in with --enable-exif. PHP does not require any additional library for the exif module. Windows users must also have the mbstring extension enabled.

    Maybe this is your problem?

    J.

      dohh... Didn't read into the manual far enough.. Was both..

      Thanks

        Write a Reply...