Answers for "php get file MIMETYPE"

PHP
-2

php get file mime type

echo mime_content_type("yourfile.gif"); //image/gif
Posted by: Guest on February-12-2021
9

php get filetype

<?php
echo filetype('/etc/passwd');  // file
echo filetype('/etc/');        // dir
?>
Posted by: Guest on February-03-2021

Browse Popular Code Answers by Language