Advertisement
H4T3D

Extract Information Behind Any Image -H4T3D

Oct 25th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1. <link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'>
  2. <style>
  3. h1,#scan{
  4. font-family: 'Orbitron', sans-serif;
  5. }
  6. </style>
  7. <center>
  8. <h1>Extract Information Behind Any Image -H4T3D</h1>
  9. <form action="" method="POST">
  10. Image Url : <input type="text" name="url" size="50" value="http://fotoforensics.com/img/books-orig.jpg">
  11. <input type="submit" name="scan" id="scan" value="Image Url">
  12. </form>
  13. </center>
  14.  
  15.  
  16. <?php
  17. error_reporting(0);
  18.  
  19. if(isset($_POST["url"])){
  20. $url=$_POST["url"];
  21.  
  22.  
  23. $content = file_get_contents($url);
  24. file_put_contents('iamge.jpg', $content);
  25.  
  26.  
  27.  
  28. $exif = exif_read_data("iamge.jpg", 0, true);
  29.  
  30. echo"<table style=\"width:100%\" border=\"10px\">";
  31. foreach ($exif as $key => $section) {
  32.     foreach ($section as $name => $val) {
  33.         echo "<tr><th>$key</th><td>$name: $val</td></tr>\n";
  34.     }
  35. }
  36. echo"</table>";
  37.  
  38. }
  39.  
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement