Search
 
SCRIPT & CODE EXAMPLE
 

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
}
Comment

PREVIOUS NEXT
Code Example
Php :: php get file contents 
Php :: laravel redirect external url 
Php :: install zip php extension 
Php :: php extensions for laravel 
Php :: clear log file laravel command 
Php :: twig first letter uppercase 
Php :: date php 
Php :: Sorry, This File Type Is Not Permitted for Security Reasons 
Php :: php timezone asia dhaka 
Php :: php cut off first x characters 
Php :: how to get the index in foreach loop in laravel 
Php :: blade comment 
Php :: wordpress enqueue style child theme 
Php :: trim comma from variable in php 
Php :: laravel read json file from storage 
Php :: display all errors at once in laravel 
Php :: php check if cli 
Php :: seed one table laravel 
Php :: install php7.4 in linux server 
Php :: wp wc php if cart page is empty redirect 
Php :: php find word in string 
Php :: php throw exception 
Php :: codeigniter get user ip 
Php :: composer create project laravel 7 
Php :: laravel append array to array 
Php :: check session in blade laravel 
Php :: parsefloat php 
Php :: foreach loop in blade code 
Php :: laravel debugbar false not working 
Php :: php sort multidimensional array 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =