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: 02-Feb-2025 16:14by 127.0.0.1