diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/exif/example.php | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/exif/example.php')
-rw-r--r-- | ext/exif/example.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/exif/example.php b/ext/exif/example.php new file mode 100644 index 0000000..e34dc05 --- /dev/null +++ b/ext/exif/example.php @@ -0,0 +1,23 @@ +<?php +// (c) M.Boerger +// +// $Id$ +// +?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional"> +<html> +<head> +<title>exif_read_data example</title> +</head> +<body> +<?php +$exif = exif_read_data ('tests/test1.jpg','IFD0'); +echo $exif===false ? "No header data found.<br>\n" : "Image contains headers<br>"; +$exif = exif_read_data ('tests/test2.jpg',0,true); +foreach($exif as $key=>$section) { + foreach($section as $name=>$val) { + echo "$key.$name: $val<br>\n"; + } +} +?> +</body> +</html>
\ No newline at end of file |