Exif - BIG PROBLEM

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
toropl
Forum Newbie
Posts: 3
Joined: Sun Jan 27, 2008 2:55 am

Exif - BIG PROBLEM

Post 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 :)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Exif - BIG PROBLEM

Post by Christopher »

Here is something that might be of interest:

http://www.ozhiker.com/electronics/pjmt/
(#10850)
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Re: Exif - BIG PROBLEM

Post 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
        }
    }
toropl
Forum Newbie
Posts: 3
Joined: Sun Jan 27, 2008 2:55 am

Re: Exif - BIG PROBLEM

Post by toropl »

Thanks a lot :)) Jam -> It works !!! You' ve saved my life ;)

PS Is there any "SOLVED" button or something like that?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Re: Exif - BIG PROBLEM

Post 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.
toropl
Forum Newbie
Posts: 3
Joined: Sun Jan 27, 2008 2:55 am

Re: Exif - BIG PROBLEM

Post 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....
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Re: Exif - BIG PROBLEM

Post by JAM »

You should see something like this in your first post...
Image
Use that, and change the subject. :D
Post Reply