note 77975 added to function.finfo-file
| From: | spazdaq at hotmail dot com | Date: | Sat, 22 Sep 2007 02:00:05 +0000 |
| Subject: | note 77975 added to function.finfo-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130685@lists.php.net to get a copy of this message | ||
FYI
contrary to the documentation, finfo_file seems to be returning a semicolon delimited string that
contains not just the mime type but also the character set.
so
$finfo = finfo_open(FILEINFO_MIME);
echo(finfo_file($finfo, $my_file));
returns: text/plain; charset=us-ascii
it may be dependent on the magic file, but i'm too lazy to investigate further.
----
Server IP: 208.69.120.35
Probable Submitter: 66.93.253.154
----
Manual Page -- http://www.php.net/manual/en/function.finfo-file.php
Edit -- https://master.php.net/note/edit/77975
Del: integrated -- https://master.php.net/note/delete/77975/integrated
Del: useless -- https://master.php.net/note/delete/77975/useless
Del: bad code -- https://master.php.net/note/delete/77975/bad+code
Del: spam -- https://master.php.net/note/delete/77975/spam
Del: non-english -- https://master.php.net/note/delete/77975/non-english
Del: in docs -- https://master.php.net/note/delete/77975/in+docs
Del: other reasons-- https://master.php.net/note/delete/77975
Reject -- https://master.php.net/note/reject/77975
Search -- https://master.php.net/manage/user-notes.php