demo_func_filesystem_fpassthru.php:
<!DOCTYPE html> <html> <body> <?php $file = fopen("test.txt","r"); // Read first line fgets($file); // Read from the current position in file - until EOF, and then write the result to the output buffer echo fpassthru($file); fclose($file); ?> </body> </html>