basename

(PHP 4, PHP 5, PHP 7) Returns trailing name component of path string basename ( string $path [, string $suffix ] ) Given a string containing the path to a file or directory, this function will return the trailing name component. Parameters: path A path. On Windows, both slash (/) and backslash (\) are used as directory separator character. In other environments, it is t

finfo::set_flags

(PHP >= 5.3.0, PECL fileinfo >= 0.1.0) Alias of finfo_set_flags() public bool finfo::set_flags ( int $options ) This function is an alias of: finfo_set_flags()

finfo::file

(PHP >= 5.3.0, PECL fileinfo >= 0.1.0) Alias of finfo_file() public string finfo::file ( string $file_name = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] ) This function is an alias of: finfo_file()

finfo::__construct

(PHP >= 5.3.0, PECL fileinfo >= 0.1.0) Alias of finfo_open() public finfo::__construct ([ int $options = FILEINFO_NONE [, string $magic_file = NULL ]] ) This function is an alias of: finfo_open()

finfo::buffer

(PHP 5 >= 5.3.0, PHP 7, PECL fileinfo >= 0.1.0) Alias of finfo_buffer() public string finfo::buffer ( string $string = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] ) This function is an alias of: finfo_buffer()

mime_content_type

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Detect MIME Content-type for a file string mime_content_type ( string $filename ) Returns the MIME content type for a file as determined by using information from the magic.mime file. Parameters: filename Path to the tested file. Returns: Returns the content type in MIME format, like text/plain or application/oct

finfo_set_flags

(PHP >= 5.3.0, PECL fileinfo >= 0.1.0) Set libmagic configuration options bool finfo_set_flags ( resource $finfo, int $options ) Procedural style Object oriented style public bool finfo::set_flags ( int $options ) This function sets various Fileinfo options. Options can be set also directly in finfo_open() or other Fileinfo functions. Parameters: finfo Fileinfo res

finfo_open

(PHP >= 5.3.0, PECL fileinfo >= 0.1.0) Create a new fileinfo resource resource finfo_open ([ int $options = FILEINFO_NONE [, string $magic_file = NULL ]] ) Procedural style Object oriented style (constructor): public finfo::__construct ([ int $options = FILEINFO_NONE [, string $magic_file = NULL ]] ) This function opens a magic database and returns its resource. Parameters: o

finfo_file

(PHP >= 5.3.0, PECL fileinfo >= 0.1.0) Return information about a file string finfo_file ( resource $finfo, string $file_name = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] ) Procedural style Object oriented style public string finfo::file ( string $file_name = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] ) This function is used to get information about a file.

finfo_close

(PHP >= 5.3.0, PECL fileinfo >= 0.1.0) Close fileinfo resource bool finfo_close ( resource $finfo ) This function closes the resource opened by finfo_open(). Parameters: finfo Fileinfo resource returned by finfo_open(). Returns: Returns TRUE on success or FALSE on failure.