What is MIME?



What is MIME?..

Answer / k.subbiah

Definition:
string mime_content_type ( string $filename )
Returns the content type in MIME format, like text/plain or application/octet-stream.
example:
<?php
echo mime_content_type('php.gif') . "\n";
echo mime_content_type('test.php');
?>
output:
image/gif
text/plain

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More PHP Interview Questions

What is the purpose of $_ session?

0 Answers  


Tell me what are the __construct() and __destruct() methods in a php class?

0 Answers  


Explain how you can update memcached when you make changes to php?

0 Answers  


How to avoid the undefined index error?

0 Answers  


What language is php written in?

0 Answers  






What is the difference between for and foreach loop in php?

0 Answers  


Why is overriding runtime?

0 Answers  


how to use http headers inside php? Write the statement through which it can be added?

0 Answers  


What is use of isset function in php?

0 Answers  


What is difference between echo and print in php?

0 Answers  


Is php free to use?

0 Answers  


How many php functions are there?

0 Answers  


Categories