Fatal Error: Call to undefined function read_exif_data()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
catalin.1975
Forum Newbie
Posts: 2
Joined: Wed Sep 08, 2010 5:39 am

Fatal Error: Call to undefined function read_exif_data()

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

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

Post by Weirdan »

read_exif_data() is an alias. Try with the real function: exif_read_data()
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post by requinix »

You also need the mbstring and exif extensions installed.
catalin.1975
Forum Newbie
Posts: 2
Joined: Wed Sep 08, 2010 5:39 am

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

Post 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).
Post Reply