finfo_file()
finfo_file - Return information about a file
Syntax
string finfo_file (
resource $finfo,
string $file_name,
int $options,
resource $context,
string $file_name,
int $options,
resource $context,
resource $finfo,
string $file_name,
int $options,
resource $context,
string $file_name,
int $options,
resource $context)
Arguments
- finfo - Fileinfo resource returned by finfo_open().
- file_name - Name of a file to be checked.
- options - One or disjunction of more Fileinfo constants.
- context - For a description of contexts, refer to Stream Functions.
- file_name
- options
- context
- finfo - Fileinfo resource returned by finfo_open().
- file_name - Name of a file to be checked.
- options - One or disjunction of more Fileinfo constants.
- context - For a description of contexts, refer to Stream Functions.
- file_name
- options
- context
Description
This function is used to get information about a file.
Version
PHP >= 5.3.0, PECL fileinfo >= 0.1.0
Return value
Returns a textual description of the contents of the filename argument, or FALSE if an error occurred.