Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
snippets:php:fgets [26-Jan-2021 19:57] – Steve Joyntsnippets:php:fgets [26-Jan-2021 20:01] (current) – Steve Joynt
Line 2: Line 2:
  
 $filename = 'whatever'; $filename = 'whatever';
 + 
 $fh = @fopen($filename, 'r'); $fh = @fopen($filename, 'r');
  
Line 12: Line 12:
     echo $text;     echo $text;
 } }
- 
-fclose($fh); 
- 
  
 </file> </file>
  • snippets/php/fgets.1611691023.txt.gz
  • Last modified: 02-Feb-2025 16:12
  • (external edit)