note 52174 added to ref.mime-magic
| From: | snarkles at osu1 dot php dot net | Date: | Sat, 23 Apr 2005 02:40:18 +0000 |
| Subject: | note 52174 added to ref.mime-magic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88429@lists.php.net to get a copy of this message | ||
Here's an example from the source for people trying to get the fileinfo extension working with
PHP 4:
<?php
$res = finfo_open(FILEINFO_MIME); /* return mime type ala mimetype extension */
$files = glob("*");
foreach ($files as $file) {
echo finfo_file($res, $file) . "\n";
}
finfo_close($res);
?>
----
Manual Page -- http://www.php.net/manual/en/ref.mime-magic.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52174
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52174&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52174&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52174&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52174&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52174&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52174&report=yes
Search -- http://master.php.net/manage/user-notes.php