Hello,
I am new to PHP and am using it with mySQL on my first dynamic web project. Part of the project involves pulling data out of jpeg headers, to do this I'm using the PHP JPEG Metadata Toolkit http://www.ozhiker.com/electronics/pjmt
I can echo the data I need using:
echo Interpret_IRB_to_HTML( get_Photoshop_IRB( get_jpeg_header_data( $filename ) ), $filename );
This returns, as html, all the data I need and then some! What I need to do is limit the data to just what I want.
Using:
echo "<pre>";
print_r( get_Photoshop_IPTC( get_Photoshop_IRB (get_jpeg_header_data( $filename ) ) ) );
I have been able to find the keys I (think) I need. E.g. There is a field called "Caption/Abstact" using the above script all the indervidual arrays were returned. The Caption/Abstract array returns as
[1]=>
array(4) {
["IPTC_Type"]=>
string(5) "2:120"
["RecName"]=>
string(16) "Caption/Abstract"
["RecDesc"]=>
string(38) "Caption/Abstract - Max 2000 Characters"
["RecData"]=>
string(21) "This is a discription"
What I want to do is just return "This is a discription". To do this I presume the key would be [1]["RecData"]. My problem is that I don't seem to be able to find the correct PHP syntax to go along with this.
I would really appreciate any help with this! It's been driving me crazy for days!
Thanks!