Connexion | Inscription | FAQ
Anonymous

What is the best way to know MIME types?

+ Publier une réponse

3 messages Page 1 sur 1


What is the best way to know MIME types?

par emily008 » Mer Oct 07, 2015 2:57 pm

What is the best way to find the MIME type of a file? Please give the PHP code.
Avatar de l’utilisateur

emily008

  • Messages: 8
  • Inscrit le: Mer Oct 07, 2015 6:29 am
  • Localisation: London
--
For more visit HTML Tutorial

Re: What is the best way to know MIME types?

par Farhin Qureshi » Ven Jan 06, 2017 10:38 am

Hi Emily008
You can use the following code to know MIME type:
Code: Tout sélectionner
<?php
echo mime_content_type('php.gif') . "\n";
echo mime_content_type('test.php');
?>


The above example will output:

image/gif
text/plain

Thanks.
Avatar de l’utilisateur

Farhin Qureshi

  • Messages: 45
  • Inscrit le: Mar Jan 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com

Re: What is the best way to know MIME types?

par taynguyenem » Ven Août 17, 2018 7:26 am

Hi guy
This is type and extentions of file input.
Avatar de l’utilisateur

taynguyenem

  • Messages: 27
  • Inscrit le: Lun Fév 05, 2018 3:28 pm
--
Preview site only Html: teamviewdownload.com, winrarfree.net


+ Publier une réponse

Page 1 sur 1