finfo
class finfo (View source)
This class provides an object-oriented interface into the fileinfo functions.
Methods
__construct(int $flags = 0, string $magic_database = null)
Alias of finfo_open
finfo(mixed $options, mixed $arg)
No description
bool
set_flags(int $flags)
(PHP >= 5.3.0, PECL fileinfo >= 0.1.0)
Set libmagic configuration options
string|false
file(string $filename, int $flags = FILEINFO_NONE, resource $context = null)
(PHP >= 5.3.0, PECL fileinfo >= 0.1.0)
Return information about a file
string|false
buffer(string $string, int $flags = FILEINFO_NONE, resource $context = null)
(PHP 5 >= 5.3.0, PECL fileinfo >= 0.1.0)
Return information about a string buffer
Details
__construct(int $flags = 0, string $magic_database = null)
Alias of finfo_open
This function is an alias of: finfo_open
finfo(mixed $options, mixed $arg)
No description
bool
set_flags(int $flags)
(PHP >= 5.3.0, PECL fileinfo >= 0.1.0)
Set libmagic configuration options
string|false
file(string $filename, int $flags = FILEINFO_NONE, resource $context = null)
(PHP >= 5.3.0, PECL fileinfo >= 0.1.0)
Return information about a file
string|false
buffer(string $string, int $flags = FILEINFO_NONE, resource $context = null)
(PHP 5 >= 5.3.0, PECL fileinfo >= 0.1.0)
Return information about a string buffer