<?php
array|false iptcparse ( string $iptc_block )
where,
$iptc_block = A binary IPTC block
?>
<?php
$img_file = "img/hubble.jpg";
$img_info = getimagesize($img_file, $file_info);
echo basename($img_file) .
'<br><br><img src="' . $img_file . '" alt="' .
$img_file . '" title="' . $img_file .
'" width="90%"><br><br>';
/*
echo "<pre>";
var_dump ( $file_info );
echo "</pre>";
*/
echo "<br>- - - -<br>";
$iptc_block0 = iptcparse($file_info["APP0"]);
echo '<pre style="color:#0000ff;">';
var_dump ( $iptc_block0 );
echo "</pre>- - - -<br>";
$iptc_block1 = iptcparse($file_info["APP1"]);
echo '<pre style="color:#0000ff;">';
var_dump ( $iptc_block1 );
echo "</pre>- - - -<br>";
$iptc_block13 = iptcparse($file_info["APP13"]);
echo '<pre style="color:#0000ff;">';
var_dump ( $iptc_block13 );
echo "</pre>- - - -<br>";
?>
<?php
$img_file = "img/x0006100.jpg";
$img_info = getimagesize($img_file, $file_info);
echo basename($img_file) . '<br><br>
<img src="' . $img_file . '" alt="' .
$img_file . '" title="' . $img_file .
'" width="90%"><br><br>';
echo ( $file_info['APP13'] );
?>
<?php
$img_file = "img/x0006100.jpg";
$img_info = getimagesize($img_file, $file_info);
echo basename($img_file) . '<br><br>
<img src="' . $img_file . '" alt="' .
$img_file . '" title="' . $img_file . '" width="90%"><br><br>';
$iptc_block = iptcparse($file_info["APP13"]);
echo ' <pre style="color:#008;
font-size:14px; font-style:italic;">+ '
. $iptc_block["2#040"]["0"] . " +
 Copyright "
. $iptc_block["2#116"]["0"] . '</pre>';
?>
+ Do not copy + Copyright (c) 2011 by zerof