Speed up development with full-stack environments for every branch.

Learn More

How to get the header name for an index with exif_tagname()

Forked from Hello World.

9 Runs 35 Views 3 Copies
Saved

Saved

gtsolutions 373

gtsolutions
published 4 years ago

<?php

/**
 * PHP exif module
 * Get the header name for an index with exif_tagname()
 * 
 */
//setting the style for the display div
$divStyle = ' background-color:green;
            padding:10px;
            color:#000;
            font-size:16px;
            width:50%;
            overflow:hidden;';

echo '<center>
    <b>Here are some header names that can be retreived from exif info:</b>';
foreach (range(1, 1000) as $index) {
    //get the header name
    $headerName = exif_tagname($index);
    if ($headerName) {
        echo '<div style = "' . $divStyle . '">
    ' . $headerName . '
        </div>';
    }
}
echo '</center>';
?>
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).