Skip to content

Instantly share code, notes, and snippets.

@bkamapantula
Created October 27, 2011 03:29
Show Gist options
  • Save bkamapantula/1318719 to your computer and use it in GitHub Desktop.
Save bkamapantula/1318719 to your computer and use it in GitHub Desktop.
Reading files line by line in PHP - Day 6
<?php
$input_file = fopen("2columns.txt", "r");
while(true)
{
$row = fgets($input_file);
if($row == null)
break;
echo $input_file;
}
fclose($input_file);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment