Page 1 of 1
Exif - BIG PROBLEM
Posted: Sun Jan 27, 2008 2:59 am
by toropl
Hi, I'm a newbe on php and exif, but I need to write script that will read ONLY COMMENT from jpg image. I know how to read all data but I have no idea how to read only comment. I used script from that site:
http://pl.php.net/manual/pl/function.exif-read-data.php but he reads all data...
Can anybody help me??
PS. Sorry for my english

Re: Exif - BIG PROBLEM
Posted: Sun Jan 27, 2008 3:43 am
by Christopher
Here is something that might be of interest:
http://www.ozhiker.com/electronics/pjmt/
Re: Exif - BIG PROBLEM
Posted: Sun Jan 27, 2008 5:23 am
by JAM
If you used the code from that example you should be able to change/add something similiar as:
Code: Select all
foreach ($section as $name => $val) {
if ($key == 'COMMENT') {
// do stuff here
}
}
Re: Exif - BIG PROBLEM
Posted: Sun Jan 27, 2008 9:05 am
by toropl
Thanks a lot

) Jam -> It works !!! You' ve saved my life
PS Is there any "SOLVED" button or something like that?
Re: Exif - BIG PROBLEM
Posted: Sun Jan 27, 2008 9:11 am
by JAM
toropl wrote:Thanks a lot

) Jam -> It works !!! You' ve saved my life

Youre welcome...
toropl wrote:PS Is there any "SOLVED" button or something like that?
No, there was one once for moderators (because I made it

) but... You should edit your first post to add it. I wish everyone added that to their posts.
Re: Exif - BIG PROBLEM
Posted: Sun Jan 27, 2008 9:48 am
by toropl
Ok, I wish to add this button, but I don't now where it is, becasue when I edit my first post I can't find it....
Re: Exif - BIG PROBLEM
Posted: Sun Jan 27, 2008 1:27 pm
by JAM
You should see something like this in your first post...

Use that, and change the subject.
