Code has been added to clipboard!

Closing PHP Files

Example
<?php
  $demofile = fopen('text_file.txt', 'r') or die('File cannot be opened!');
  // Output file lines one by one
  while(!feof($demofile)) {
    echo fgets($demofile) . "<br>";
  }
  fclose($demofile);
?>