Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. <file php> $filename = 'whatever'; $fh = @fopen($filename, 'r'); if ( ! $fh ) { throw new Exception("Failed to open ${filename}"); } while ( ( $text = fgets($fh) ) !== false ) { echo $text; } </file> snippets/php/fgets.txt Last modified: 26-Jan-2021 20:01by Steve Joynt