Actually, this is a very simple task. The below code snippet will open a text file and store its contents line by line in an array (all done by the "file" command), and echo each line out to the screen (using the "foreach" loop):
<?php
// Read Text File Line by Line
$text_file = "your_text_file.txt";
$file_lines = file($text_file);
foreach($file_lines as $line)
{
echo "$line<BR>";
}
?>
Pretty cool huh? Of course you could include error checking as well (i.e. to catch if the file can't be opened) but the above alone will do what you want.
Hope this helps!
Day Trooper