Query: mime_content_type
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MIME_CONTENT_TYPE(3) 1 MIME_CONTENT_TYPE(3) mime_content_type - Detect MIME Content-type for a file (deprecated)SYNOPSISstring mime_content_type (string $filename)DESCRIPTIONReturns the MIME content type for a file as determined by using information from the magic.mime file.PARAMETERSo $filename - Path to the tested file.RETURN VALUESReturns the content type in MIME format, like text/plain or application/octet-stream.NOTESWarning This function has been deprecated as the PECL extension Fileinfo provides the same functionality (and more) in a much cleaner way.EXAMPLESExample #1 mime_content_type(3) Example <?php echo mime_content_type('php.gif') . " "; echo mime_content_type('test.php'); ?> The above example will output: image/gif text/plainSEE ALSOFileinfo for a replacement . PHP Documentation Group MIME_CONTENT_TYPE(3)
| Related Man Pages | 
|---|
| imap_mail_compose(3) - php | 
| bbcode_create(3) - php | 
| finfo_buffer(3) - php | 
| image2wbmp(3) - php | 
| php_strip_whitespace(3) - php | 
| Similar Topics in the Unix Linux Community | 
|---|
| How to attach a file in mail? | 
| metamail execution error | 
| Mail attatchment line length | 
| mail from unix | 
| Retrieving File's Mime-type |