fpassthru

The fpassthru() function reads all data from the current position in an open file, until EOF, and writes the result to the output buffer.

This function returns the number of characters passed or FALSE on failure.

Example

<?php

$fp = @fopen(“test.txt”, “r”);

fpassthru($fp);

?>

Share