Back to index

php5  5.3.10
example.php
Go to the documentation of this file.
00001 <?php
00002 // (c) M.Boerger
00003 //
00004 // $Id: example.php 72471 2002-03-08 11:33:46Z helly $
00005 //
00006 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional">
00007 <html>
00008 <head>
00009 <title>exif_read_data example</title>
00010 </head>
00011 <body>
00012 <?php
00013 $exif = exif_read_data ('tests/test1.jpg','IFD0');
00014 echo $exif===false ? "No header data found.<br>\n" : "Image contains headers<br>";
00015 $exif = exif_read_data ('tests/test2.jpg',0,true);
00016 foreach($exif as $key=>$section) {
00017     foreach($section as $name=>$val) {
00018         echo "$key.$name: $val<br>\n";
00019     }
00020 }
00021 ?>
00022 </body>
00023 </html>