[服務架設][系統][PHP] Fatal error: Call to undefined function exif_read_data()
If you got a ‘Fatal error: Call to undefined function exif_read_data(): …..’ error during executing your PHP program, you may:
case1: (Using PHP in Microsoft Windows environment)
Edit your php.ini and move the ‘extension=php_mbstring.dll’ prior to ‘extension=php_exif.dll’. Re-start your web-server (apache).
case2: (Linux)
Re-compile and re-install your PHP with configuration parameters –enable-exif and –enable-mbstring (compiling both exif and mbstring statically, don’t use mbstring compiled as a DSO module).
Reference:
[1] http://uk2.php.net/exif_read_data