Skip to content

Instantly share code, notes, and snippets.

@t-kashima
Created September 29, 2013 04:35
Show Gist options
  • Save t-kashima/6749370 to your computer and use it in GitHub Desktop.
Save t-kashima/6749370 to your computer and use it in GitHub Desktop.
<?php
$imageurl = 'http://farm3.staticflickr.com/2844/9898243895_8ba3267d5a_o.jpg';
$filename = 'tmp.jpg';
$tmp = file_get_contents($imageurl);
if ($tmp) {
$fp = fopen($filename, 'w');
fwrite($fp, $tmp);
fclose($fp);
}
print_r(exif_read_data($filename, 'IFD0'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment