finfo
class finfo (View source)
Methods
__construct(int $flags = 0, string $magic_database)
No description
finfo($options, $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)
No description
finfo($options, $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