fpassthru()
fpassthru - Output all remaining data on a file pointer
Syntax
int fpassthru (
resource $handle)
Arguments
- handle - The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
Description
Reads to EOF on the given file pointer from the current position and writes the results to the output buffer.
Version
PHP 4, 5
Return value
If an error occurs, fpassthru() returns FALSE. Otherwise, fpassthru() returns the number of characters read from handle and passed through to the output.