is_readable

(PHP 4, PHP 5, PHP 7) Tells whether a file exists and is readable bool is_readable ( string $filename ) Tells whether a file exists and is readable. Parameters: filename Path to the file. Returns: Returns TRUE if the file or directory specified by filename exists and is readable, FALSE otherwise. Exception: Upon

is_uploaded_file

(PHP 4 >= 4.0.3, PHP 5, PHP 7) Tells whether the file was uploaded via HTTP POST bool is_uploaded_file ( string $filename ) Returns TRUE if the file named by filename was uploaded via HTTP POST. This is useful to help ensure that a malicious user hasn't tried to trick the script into working on files upon which it should not be working--for instance, /etc/passwd. This sort of check is especially important if there is an

is_file

(PHP 4, PHP 5, PHP 7) Tells whether the filename is a regular file bool is_file ( string $filename ) Tells whether the given file is a regular file. Parameters: filename Path to the file. Returns: Returns TRUE if the filename exists and is a regular file, FALSE otherwise. Note: Because PHP's integer type is signed and many platforms use 32bit i

is_dir

(PHP 4, PHP 5, PHP 7) Tells whether the filename is a directory bool is_dir ( string $filename ) Tells whether the given filename is a directory. Parameters: filename Path to the file. If filename is a relative filename, it will be checked relative to the current working directory. If filename is a symbolic or hard link then the link will be resolved and checked. If you h

is_executable

(PHP 4, PHP 5, PHP 7) Tells whether the filename is executable bool is_executable ( string $filename ) Tells whether the filename is executable. Parameters: filename Path to the file. Returns: Returns TRUE if the filename exists and is executable, or FALSE on error. Exception: Upon failure, an E_WARNING is emitte

is_link

(PHP 4, PHP 5, PHP 7) Tells whether the filename is a symbolic link bool is_link ( string $filename ) Tells whether the given file is a symbolic link. Parameters: filename Path to the file. Returns: Returns TRUE if the filename exists and is a symbolic link, FALSE otherwise. Exception: Upon failure, an E_WARNING

glob

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Find pathnames matching a pattern array glob ( string $pattern [, int $flags = 0 ] ) The glob() function searches for all the pathnames matching pattern according to the rules used by the libc glob() function, which is similar to the rules used by common shells. Parameters: pattern The pattern. No tilde expansion or parameter substitutio

fwrite

(PHP 4, PHP 5, PHP 7) Binary-safe file write int fwrite ( resource $handle, string $string [, int $length ] ) fwrite() writes the contents of string to the file stream pointed to by handle. Parameters: handle A file system pointer resource that is typically created using fopen(). string The string that is to be written.

fseek

(PHP 4, PHP 5, PHP 7) Seeks on a file pointer int fseek ( resource $handle, int $offset [, int $whence = SEEK_SET ] ) Sets the file position indicator for the file referenced by handle. The new position, measured in bytes from the beginning of the file, is obtained by adding offset to the position specified by whence. In general, it is allowed to seek past the end-of-file; if data is then written, reads in any unwritten r

fstat

(PHP 4, PHP 5, PHP 7) Gets information about a file using an open file pointer array fstat ( resource $handle ) Gathers the statistics of the file opened by the file pointer handle. This function is similar to the stat() function except that it operates on an open file pointer instead of a filename. Parameters: handle A file system pointer resource that is typically create