6

在我的应用程序中,我收到以下错误:

调用未定义函数 exif_read_data()

我已经在 exif 扩展之前启用了 mbstring 扩展,但我仍然收到此错误。

任何人都可以给我任何关于为什么这个错误仍然存​​在的提示吗?

谢谢!

4

1 回答 1

13

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/

于 2013-04-05T10:57:01.427 回答