Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $image = file_get_contents($imageURL);
- $contentTypeRaw = preg_grep('/content-type[^-]/i', $http_response_header);
- $contentType = preg_split("/[\s]/", reset($contentTypeRaw))[1];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement