Page 1 of 1

Fatal Error: Call to undefined function read_exif_data()

Posted: Wed Sep 08, 2010 7:03 am
by catalin.1975
Hello all!
I'm trying to get the EXIF info out of some JPEGs. I'm using IIS on a Win2003 Server (domain controller), with PHP 5.1.3.
I enabled php_exif.dll and php_mbstring.dll in php.ini, and I moved php_mbstring.dll in front of php_exif.dll, so the lib mbstring will be loaded before exif library (this is a standard requirement for exif installation).
I ran phpinfo() and saw that both mbstring and exif are enabled. However, when I run a script calling the function read_exif_data(), I get the message "Fatal Error: Call to undefined function read_exif_data() ....".
I'm stuck here and I do not know what to try to make the function work.
Any hints?
thanx

Re: Fatal Error: Call to undefined function read_exif_data()

Posted: Wed Sep 08, 2010 7:27 am
by Weirdan
read_exif_data() is an alias. Try with the real function: exif_read_data()

Re: Fatal Error: Call to undefined function read_exif_data()

Posted: Wed Sep 08, 2010 7:51 am
by requinix
You also need the mbstring and exif extensions installed.

Re: Fatal Error: Call to undefined function read_exif_data()

Posted: Wed Sep 08, 2010 9:32 am
by catalin.1975
I did use both read_exif_data() and exif_read_data(). No luck. What do you mean by installing mbstring and exif? If you mean uncommenting them from php.ini, I did that as well (please refer to my initial message).