Menu Riverview Church

FPASSTHRU

Output all remaining data on a file pointer

SYNTAX

fpassthru ( resource $handle ) : int

PARAMETERS

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

RETURN

If an error occurs, fpassthru() returns FALSE. Otherwise, fpassthru() returns the number of characters read from handle and passed through to the output.

EXAMPLES

HANDLE

Hello

RETURN

Hello
5

PHP