What is MIME?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is session value stored php?

532


How can I embed a java program in php file and what changes have to be done in php.ini file?

510


What is the use of "ksort" in php?

503


Explain the changes in php versions?

532


What is the difference between overloading and overriding in php?

536






How to convert a character to an ascii value?

558


How do I install php and apache on windows 10?

509


Tell me what does $_env means?

528


What is php glob?

565


Tell me what kind of things have you done on the social side?

502


Is php an array?

512


Tell me how can we determine whether a php variable is an instantiated object of a certain class?

556


Which operator is used to combine string values in php?

503


What does namespace mean in php?

551


Why is overriding runtime?

571