Page 1 of 1

parse image header info [SOLVED]

Posted: Mon Jan 14, 2008 4:27 am
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!)

Re: parse image header info [SOLVED]

Posted: Mon Jan 14, 2008 5:48 am
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