exif extension
Posted by: Tumbler (---.access.telenet.be)
Date: January 05, 2008 08:06PM

Hello

I'm trying to get a picture info with exif_read_data.
Exif module is loaded, and i get this error: Fatal error: Call to undefined function exif_read_data() in

when i run this script:
<?php
if(extension_loaded("exif"winking smiley){
$exif = @exif_read_data('test.jpg','EXIF',true);
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$key.$name: $val<br />\n";
}
}
}
else echo"extension not loaded";
?>
i get the message: extension not loaded.
sad smiley

Did i something wrong here?



Edited 1 time(s). Last edit at 01/05/2008 08:07PM by Tumbler.

Options: ReplyQuote
Re: exif extension
Posted by: Tumbler (---.access.telenet.be)
Date: January 07, 2008 09:58AM

Problem solved.

To read exif data you must have enabled the exif module and the mbstring module.
BUT: window users have to load the mbstring module BEFORE the exif module.

When you use the php extension menu, the exif module is loading first.

Tumbler

Options: ReplyQuote


Sorry, only registered users may post in this forum.