diff --git a/reference/mime_magic/functions/mime-content-type.xml b/reference/mime_magic/functions/mime-content-type.xml index b33f7be2ca..81bd8a2691 100644 --- a/reference/mime_magic/functions/mime-content-type.xml +++ b/reference/mime_magic/functions/mime-content-type.xml @@ -1,12 +1,13 @@ - + mime_content_type - Detect MIME Content-type for a file + Detect MIME Content-type for a file (deprecated) - - Description + + + &reftitle.description; stringmime_content_type stringfilename @@ -14,12 +15,49 @@ Returns the MIME content type for a file as determined by using information from the magic.mime file. - Content types are returned in MIME format, like text/plain - or application/octet-stream. + + + + &reftitle.parameters; + + + + filename + + + Path to the tested file. + + + + + + + + + &reftitle.returnvalues; + + Returns the content type in MIME format, like + text/plain or application/octet-stream. + + + + + &reftitle.notes; + + + This function has been deprecated as the PECL extension + Fileinfo provides the same + functionality (and more) in a much cleaner way. + + + + + + &reftitle.examples; - <function>mime_content_type</function> example + <function>mime_content_type</function> Example + + + &reftitle.seealso; + + + + Fileinfo for a replacement + + + +