Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get file type from url

$file_info = new finfo(FILEINFO_MIME_TYPE);
$mime_type = $file_info->buffer(file_get_contents($image_url));
echo $mime_type;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #file #type #url
ADD COMMENT
Topic
Name
2+7 =