ID: 25603 Updated by: [EMAIL PROTECTED] Reported By: flobee at gmx dot net -Status: Open +Status: Bogus Bug Type: Scripting Engine problem -Operating System: Win XP +Operating System: * -PHP Version: 4.3.3 +PHP Version: * New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php That means you haven't loaded exif extension. Previous Comments: ------------------------------------------------------------------------ [2003-09-19 07:22:47] flobee at gmx dot net Description: ------------ function: exif_imagetype do not exists! Fatal error: Call to undefined function Reproduce code: --------------- function chk_image($type,$imagepath) { $transtype = ""; if(file_exists($imagepath)) { switch($type) { case "gif": $transtype = IMAGETYPE_GIF; break; case "jpg": $transtype = IMAGETYPE_JPEG; break; case "png": $transtype = IMAGETYPE_PNG; break; case "swf": $transtype = IMAGETYPE_SWF; break; case "psd": $transtype = IMAGETYPE_PSD; break; case "bmp": $transtype = IMAGETYPE_BMP; break; } if (exif_imagetype($imagepath) == $transtype) { return true; } else { return false; } } else { return false; //echo "Error: Image not Found<br>"; } } puts out: Fatal error: Call to undefined function exif_imagetype ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25603&edit=1