filetype

(PHP 4, PHP 5, PHP 7) Gets file type string filetype ( string $filename ) Returns the type of the given file. Parameters: filename Path to the file. Returns: Returns the type of the file. Possible values are fifo, char, dir, block, link, file, socket and unknown. Returns FALSE if an error occurs. filetype() will also produce an E_NOTICE message

filesize

(PHP 4, PHP 5, PHP 7) Gets file size int filesize ( string $filename ) Gets the size for the given file. Parameters: filename Path to the file. Returns: Returns the size of the file in bytes, or FALSE (and generates an error of level E_WARNING) in case of an error. Note: Because PHP's integer type is signed and many platforms use 32bit integers

fileperms

(PHP 4, PHP 5, PHP 7) Gets file permissions int fileperms ( string $filename ) Gets permissions for the given file. Parameters: filename Path to the file. Returns: Returns the file's permissions as a numeric mode. Lower bits of this mode are the same as the permissions expected by chmod(), however on most platforms the return value will also incl

fileowner

(PHP 4, PHP 5, PHP 7) Gets file owner int fileowner ( string $filename ) Gets the file owner. Parameters: filename Path to the file. Returns: Returns the user ID of the owner of the file, or FALSE on failure. The user ID is returned in numerical format, use posix_getpwuid() to resolve it to a username. Exception:

filemtime

(PHP 4, PHP 5, PHP 7) Gets file modification time int filemtime ( string $filename ) This function returns the time when the data blocks of a file were being written to, that is, the time when the content of the file was changed. Parameters: filename Path to the file. Returns: Returns the time the file was last modified, or FALSE on failure. The

fileinode

(PHP 4, PHP 5, PHP 7) Gets file inode int fileinode ( string $filename ) Gets the file inode. Parameters: filename Path to the file. Returns: Returns the inode number of the file, or FALSE on failure. Exception: Upon failure, an E_WARNING is emitted. Notes: The results of this func

filegroup

(PHP 4, PHP 5, PHP 7) Gets file group int filegroup ( string $filename ) Gets the file group. The group ID is returned in numerical format, use posix_getgrgid() to resolve it to a group name. Parameters: filename Path to the file. Returns: Returns the group ID of the file, or FALSE if an error occurs. The group ID is returned in numerical format,

filectime

(PHP 4, PHP 5, PHP 7) Gets inode change time of file int filectime ( string $filename ) Gets the inode change time of a file. Parameters: filename Path to the file. Returns: Returns the time the file was last changed, or FALSE on failure. The time is returned as a Unix timestamp. Exception: Upon failure, an E_WAR

fileatime

(PHP 4, PHP 5, PHP 7) Gets last access time of file int fileatime ( string $filename ) Gets the last access time of the given file. Parameters: filename Path to the file. Returns: Returns the time the file was last accessed, or FALSE on failure. The time is returned as a Unix timestamp. Exception: Upon failure, a

file

(PHP 4, PHP 5, PHP 7) Reads entire file into an array array file ( string $filename [, int $flags = 0 [, resource $context ]] ) Reads an entire file into an array. Note: You can use file_get_contents() to return the contents of a file as a string. Parameters: filename Path to the file. TipA URL can be used as a filename with this function if the fopen wrappers hav