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

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

fscanf

(PHP 4 >= 4.0.1, PHP 5, PHP 7) Parses input from a file according to a format mixed fscanf ( resource $handle, string $format [, mixed &$... ] ) The function fscanf() is similar to sscanf(), but it takes its input from a file associated with handle and interprets the input according to the specified format, which is described in the documentation for sprintf(). Any whitespace in the format string matches any whitesp

fread

(PHP 4, PHP 5, PHP 7) Binary-safe file read string fread ( resource $handle, int $length ) fread() reads up to length bytes from the file pointer referenced by handle. Reading stops as soon as one of the following conditions is met: length bytes have been read EOF (end of file) is reached a packet becomes available or the socket timeout occurs (for network streams) if the stream is read buffered and it does n

fputs

(PHP 4, PHP 5, PHP 7) Alias of fwrite() This function is an alias of: fwrite().

fputcsv

(PHP 5 >= 5.1.0, PHP 7) Format line as CSV and write to file pointer int fputcsv ( resource $handle, array $fields [, string $delimiter = "," [, string $enclosure = '"' [, string $escape_char = "\" ]]] ) fputcsv() formats a line (passed as a fields array) as CSV and write it (terminated by a newline) to the specified file handle. Parameters: handle The file pointer m

fpassthru

(PHP 4, PHP 5, PHP 7) Output all remaining data on a file pointer int fpassthru ( resource $handle ) Reads to EOF on the given file pointer from the current position and writes the results to the output buffer. You may need to call rewind() to reset the file pointer to the beginning of the file if you have already written data to the file. If you just want to dump the contents of a file to the output buffer, without firs

fopen

(PHP 4, PHP 5, PHP 7) Opens file or URL resource fopen ( string $filename, string $mode [, bool $use_include_path = false [, resource $context ]] ) fopen() binds a named resource, specified by filename, to a stream. Parameters: filename If filename is of the form "scheme://...", it is assumed to be a URL and PHP will search for a protocol handler (also known as a wrapper

fnmatch

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Match filename against a pattern bool fnmatch ( string $pattern, string $string [, int $flags = 0 ] ) fnmatch() checks if the passed string would match the given shell wildcard pattern. Parameters: pattern The shell wildcard pattern. string The tested string. This function is especially useful for file

flock

(PHP 4, PHP 5, PHP 7) Portable advisory file locking bool flock ( resource $handle, int $operation [, int &$wouldblock ] ) flock() allows you to perform a simple reader/writer model which can be used on virtually every platform (including most Unix derivatives and even Windows). On versions of PHP before 5.3.2, the lock is released also by fclose() (which is also called automatically when script finished). PHP suppor