From 25e29ba7ec23b64ff5d0966a3d26c514779ab7e2 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Sun, 21 Jan 2007 15:26:50 +0000 Subject: [PATCH] ref.mime_magic: switch to new style git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@227753 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/mime-content-type.xml | 63 ++++++++++++++++--- 1 file changed, 56 insertions(+), 7 deletions(-) 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 + + + +