-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphoto.php
51 lines (44 loc) · 1.99 KB
/
photo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!--
.S_SsS_S. .S_sSSs sSSs .S_SSSs sSSs_sSSs S. .S_SSSs
.SS~S*S~SS. .SS~YS%%b d%%SP .SS~SSSSS d%%SP~YS%%b SS. .SS~SSSSS
S%S `Y' S%S S%S `S%b d%S' S%S SSSS d%S' `S%b S%S S%S SSSS
S%S S%S S%S S%S S%S S%S S%S S%S S%S S%S S%S S%S
S%S S%S S%S d*S S&S S%S SSSS%P S&S S&S S&S S%S SSSS%S
S&S S&S S&S .S*S S&S_Ss S&S SSSY S&S S&S S&S S&S SSS%S
S&S S&S S&S_sdSSS S&S~SP S&S S&S S&S S&S S&S S&S S&S
S&S S&S S&S~YSY%b S&S S&S S&S S&S S&S S&S S&S S&S
S*S S*S S*S `S%b S*b S*S S&S S*b d*S S*b S*S S&S
S*S S*S S*S S%S S*S. S*S S*S S*S. .S*S S*S. S*S S*S
S*S S*S S*S S&S SSSbs S*S SSSSP SSSbs_sdSSS SSSbs S*S S*S
SSS S*S S*S SSS YSSP S*S SSY YSSP~YSSY YSSP SSS S*S
SP SP SP SP
Y Y Y Y
-->
<h1>Standard Data</h1>
<?php
$exif = exif_read_data('1.jpg', 'IFD0');
echo $exif===false ? "No header data found.<br />\n" : "Image contains headers<br /><br />";
$exif = exif_read_data('1.jpg', 0, true);
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$key.$name: $val<br />\n";
}
}
?>
<br><br>
<h1>Print All Information</h1>
<?php
function arrayPrettyPrint($exif, $level) {
foreach($exif as $k => $v) {
for($i = 0; $i < $level; $i++)
echo(" ");
if(!is_array($v))
echo("<b>".$k ."</b> => " . $v . "<br/>");
else {
echo("<br><b>".$k . "</b> => <br/>");
arrayPrettyPrint($v, $level+1);
}
}
}
arrayPrettyPrint($exif, 0);
?>