Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1.                 $image = file_get_contents($imageURL);
  2.                 $contentTypeRaw = preg_grep('/content-type[^-]/i', $http_response_header);
  3.                 $contentType = preg_split("/[\s]/", reset($contentTypeRaw))[1];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement