EXIF
extension is a standard part of PHP distributions, but it must be enabled in php.ini file in order to use its functions. On windows, EXIF
extension also depends on mbstring, an extension that provides multi-byte string parsing. Moreover, the sequence of enabling extensions in php.ini file does matter. If exif is enabled prior to mbstring, EXIF
functions will not be available at run-time.
mbstring extension must be enabled before EXIF!
which is enabled in your case but php_exif.dll
is not.
If you need to use EXIF
functions in your environment, be it development or production, this is something you need to keep in mind. By default, extensions are ordered in alphabetical order in php.ini file. This makes it very easy to run into situation when you start banging your head against the wall as you don’t realize why function_exists('exif_imagetype')
keeps returning FALSE even though you have enabled both EXIF and mbstring extensions.
Remove the comment ;
and enable EXIF
function