<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>PHP File Example -- Read</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

This is an example of reading from the file list of names.

<br>
<br>
<?php
$inf = "listofnames.txt";
$FILEH = fopen($inf, "r") or die("Can not open File");
$inline = fgets($FILEH, 4096);
while (!(feof($FILEH))){
print $inline; ?>
<br>
<?php
$inline = fgets($FILEH, 4096);
}

fclose ($FILEH);
?>

<br> End of File List
</body>
</html>