parse image header info [SOLVED]

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
User avatar
mikeeeeeeey
Forum Contributor
Posts: 130
Joined: Mon Jul 03, 2006 4:17 am
Location: Huddersfield, UK

parse image header info [SOLVED]

Post by mikeeeeeeey »

Hi guys,

I've been reading the IPTC guidelines which should just about all the data you can store in an image header. I'm using exif_read_data() to get this information but I keep getting the same error when trying to use this method...

Code: Select all

Fatal error: Call to undefined function exif_read_data()...
when trying to...

Code: Select all

echo "<p>" . exif_read_data($files['tmp_name'], 'IFD0') . "</p>";
Thanks in advance.

(Also loving the new layout!)
User avatar
jimthunderbird
Forum Contributor
Posts: 147
Joined: Tue Jul 04, 2006 3:59 am
Location: San Francisco, CA

Re: parse image header info [SOLVED]

Post by jimthunderbird »

Check phpinfo(), and see if there's an exif section in it, if no, your hosting does not hava --enable-exif option compiled in php, thus exif_read_data function does not exist.

For details, see http://us.php.net/exif
Post Reply