What is PhpDig?
PhpDig is a PHP MySQL based
Web Spider & Search Engine.



read_exif_data — Obtains information about an image.


array read_exif_data([file]);
string file (optional): Filename


Array of image information or FALSE on error


Analyzes a portion of information in a JPEG image that's commonly written to by digital cameras. This information is known as the EXIF headers. Although the information in each image can vary from manufacturer to manufacturer, some useful information can be extracted about the image, the camera, and how the image was taken.

To use this function, you must compile PHP with the --enable-exif flag. Additionally, because the information varies so much from manufacturer to manufacturer, not all headers can be read from the image. A complete list of available information can be found by inspecting ext/exif/exif.c in the PHP source code.


Existing since version 4.0.1


Example 452. Display exif image information

$exif = read_exif_data('testimage.jpg');
while(list($key, $val) = each($exif)) {
    echo "$key => $val <BR>\n";

PHP Functions Essential Reference. Copyright © 2002 by New Riders Publishing (Authors: Zak Greant, Graeme Merrall, Torben Wilson, Brett Michlitsch). This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at The authors of this book have elected not to choose any options under the OPL. This online book was obtained from and is designed to provide information about the PHP programming language, focusing on PHP version 4.0.4 for the most part. The information is provided on an as-is basis, and no warranty or fitness is implied. All persons and entities shall have neither liability nor responsibility to any person or entity with respect to any loss or damage arising from the information contained in this book.

Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.