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

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).

fputs

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

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

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

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

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