Skip to content

Instantly share code, notes, and snippets.

@Climber24
Created January 6, 2017 14:38
Show Gist options
  • Select an option

  • Save Climber24/78f1e98a6179fe602414044bff329792 to your computer and use it in GitHub Desktop.

Select an option

Save Climber24/78f1e98a6179fe602414044bff329792 to your computer and use it in GitHub Desktop.
PHP file reading
<?php
$fh = fopen("read.php","r");
if (!$fh) die("Cannot open file");
while (!feof ($fh))
{
$line = fgets($fh);
echo $line,"<br>";
}
fclose($fh);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment