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_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_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

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_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_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

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.

ftruncate

(PHP 4, PHP 5, PHP 7) Truncates a file to a given length bool ftruncate ( resource $handle, int $size ) Takes the filepointer, handle, and truncates the file to length, size. Parameters: handle The file pointer. Note: The handle must be open for writing. size The size to truncate to. Note: If size is larger than the file then t

ftell

(PHP 4, PHP 5, PHP 7) Returns the current position of the file read/write pointer int ftell ( resource $handle ) Returns the position of the file pointer referenced by handle. Parameters: handle The file pointer must be valid, and must point to a file successfully opened by fopen() or popen(). ftell() gives undefined results for append-only streams (opened with "a" flag).