Hello,
i want thatt when someone in myforum posting topic with images, automatic, the system will show the exif info.
how can i do this?
i found a exif text in some of the images that someone has posted, but i dont know how to let the system show the info.
Somebody can help me please?
Big thanks,
Gil/
I've never heard of Exif information?
Tikitiki Wrote:Oh so are you saying, Gil Berger, that you want to extract the meta data from the Exif image and display it inline with the image?
Edit: You can use http://no2.php.net/manual/en/function.re...f-data.php for 4.0 > 4.2 PHP compatibility
Err that's what I said.. although read_exif_data is just an alias.
CraKteR Wrote:Tikitiki Wrote:Oh so are you saying, Gil Berger, that you want to extract the meta data from the Exif image and display it inline with the image?
Edit: You can use http://no2.php.net/manual/en/function.re...f-data.php for 4.0 > 4.2 PHP compatibility
Err that's what I said.. although read_exif_data is just an alias.
No that's not what you said. You said use exif_read_data which is ONLY 4.2 and > PHP compatible. While the one I linked to (read_exif_data) is 4.0 and > PHP compatible.
If your host uses a PHP version that's greater than 4.2, it doesn't matter which function alias you use (read_exif_data or exif_read_data).
thanks all, but i saw that before, and it didnt helped me :X
i dont know how to "translate" the info to english words from the coded words.
in the first time i tahught about str/preg_replace, but i cantt cause the info is in <exifdata>aaa</exif>
and i need only the aaa.
$exif = exif_read_data('tests/test2.jpg', 0, true);
echo "test2.jpg:<br />\n";
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$val<br />\n";
}
}
In that example you just take $val and manipulate it. Otherwise you can also add if's if you only want specific information to be shown.