daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Aug 3rd, 2013 519 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. echo "Find file *.jpg :<br />\n List file may be negative :<br />\n";
  3. $exifdata = array();
  4. foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator('.')) as $filename)
  5. {
  6.     //echo "$filename<br />\n";
  7.         if      (strpos($filename,".jpg")==true or strpos($filename,".JPG")==true)
  8.         {
  9.                 $exif = read_exif_data($filename);
  10. /*1*/   if (isset($exif["Make"])) {
  11.                         $exifdata["Make"] = ucwords(strtolower($exif["Make"]));
  12.                         if (strpos($exifdata["Make"],"/e")==true) echo "$filename<br />\n";
  13.                 }
  14. /*2*/   if (isset($exif["Model"])) {
  15.                         $exifdata["Model"] = ucwords(strtolower($exif["Model"]));
  16.                         if (strpos($exifdata["Model"],"/e")==true) echo "$filename<br />\n";
  17.                 }
  18. /*3*/   if (isset($exif["Artist"])) {
  19.                         $exifdata["Artist"] = ucwords(strtolower($exif["Artist"]));
  20.                         if (strpos($exifdata["Artist"],"/e")==true) echo "$filename<br />\n";
  21.                 }
  22. /*4*/   if (isset($exif["Copyright"])) {
  23.                         $exifdata["Copyright"] = ucwords(strtolower($exif["Copyright"]));
  24.                         if (strpos($exifdata["Copyright"],"/e")==true) echo "$filename<br />\n";
  25.                 }
  26. /*5*/   if (isset($exif["ImageDescription"])) {
  27.                         $exifdata["ImageDescription"] = ucwords(strtolower($exif["ImageDescription"]));
  28.                         if (strpos($exifdata["ImageDescription"],"/e")==true) echo "$filename<br />\n";
  29.                 }
  30. /*6*/   if (isset($exif["UserComment"])) {
  31.                         $exifdata["UserComment"] = ucwords(strtolower($exif["UserComment"]));
  32.                         if (strpos($exifdata["UserComment"],"/e")==true) echo "$filename<br />\n";
  33.                 }
  34.         }
  35. }
  36. echo "Done!";
  37. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top