note 75726 deleted from function.finfo-file by felipe
| From: | felipe@php.net | Date: | Fri, 29 Aug 2008 13:09:14 +0000 |
| Subject: | note 75726 deleted from function.finfo-file by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143981@lists.php.net to get a copy of this message | ||
Note Submitter: php at whispers dot f9 dot co dot uk
----
Annoying one this - only tested on Windows.
It looks like finfo_file only works if you give it an absolute filename or a file listed in $_FILES
- presumably because there are known locations that php looks for files.
eg:
finfo_file($handle,'img.gif'); // returns an error
finfo_file($handle,realpath('img.gif')); // returns correctly