<?php
$fp = fopen('file.html','r');
if (!$fp) {echo 'ERROR: Unable to open file.</table></body></html>'; exit;}
while (!feof($fp)) {
$line = fgets($fp, 1024); //use 2048 if very long lines
list ($field1) = split ('\|', $line);
echo '
<tr>
<td>'.$field1.'</td>
</tr>';
$fp++;
}
fclose($fp);
?>