Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if file is video

$mime = mime_content_type($file);
if(strstr($mime, "video/")){
    // this code for video
}else if(strstr($mime, "image/")){
    // this code for image
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #file #video
ADD COMMENT
Topic
Name
5+8 =