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

Which library is used in php to do various types of image work?

517


What are php parameters?

529


Is php class name case sensitive?

520


What is the value for this auto incremented field user_pri_id?

507


What is the difference between die () and exit () in php?

515






What is super () python?

539


What the limitation of header() function in php?

511


Whether php supports microsoft sql server?

561


What is the goto statement useful for?

554


How you can update memcached when you make changes to php?

618


Is it more secure to use cookies to trfer session ids?

518


How to select a database?

546


How are sessions maintained?

542


Can a trait extend a class php?

524


What is the use of limit in mysql?

517