How to check that file is the image or video type in the PHP version 5.2.9
$ mime = mime_content_type ($ file); {Strstr ($ mime, "video /")} {// this code for video} and if (strstr ($ mime, "image /")) {// this code for image}
< / Pre>should work for more file extensions.
Comments
Post a Comment