Function call undefined exif_read_data ()

The following error appears in my application:

function call undefined exif_read_data ()

I already enabled the mbstring extension before the exif extension, but I still get this error.

Can someone give me any clues as to why this error persists?

Thank!

+5
source share
1 answer

So you should look like this: php.ini (on Windows):

1   extension=php_mbstring.dll
2   extension=php_exif.dll

and not:

1   extension=php_exif.dll
2   extension=php_mbstring.dll

restart apache good luck!

update 1

Try this code and return the result

 <?php
$ini = get_cfg_var('cfg_file_path');
echo '<pre>ini: ', $ini, "\n";

foreach(file($ini) as $l) {
  if ( false!==strpos($l, '_exif') || false!==strpos($l, '_mbstring') ) {
    echo $l;
  }
}
echo '<pre>'; 

update 2 check the "ext" directory of your PHP installation and see the file php_exif.dll. update 3 try http://www.sno.phy.queensu.ca/~phil/exiftool/

+8

All Articles