Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

call to undefined function exif_read_data() [closed]

Tags:

php

exif

In my application I am getting the following error:

call to undefined function exif_read_data()

I already have enabled mbstring extension before exif extension but I am still getting this error.

Could anybody give me any hints as to why this error persists?

Thanks!

like image 646
shefalibansal05 Avatar asked Apr 05 '13 10:04

shefalibansal05


1 Answers

So you php.ini needs to look like this (under 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 put back 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 “ext” directory of your PHP installation and see the file php_exif.dll was there. update 3 try http://www.sno.phy.queensu.ca/~phil/exiftool/

like image 119
internals-in Avatar answered Oct 19 '22 12:10

internals-in