Below is my file read. I am trying to output it in a table form and also i am trying to read any length of tilde document.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<?php
$namefile = 'pilots.txt';
$OUTFILE = fopen($namefile, 'r') or die("Can't open $namefile for read");
$name = fgets($OUTFILE,4096);
if($OUTFILE){
while (!feof($OUTFILE))
{
echo"<tr>";
for($row=fgetcsv($OUTFILE,1024,'~'))
{
echo "<td>";
echo $row[$i];
echo "</td>"
}
echo"</tr>"
}
fclose ($OUTFILE);
}
?>
<h2> Soucre Code File</h2>
<p>
<?php
show_source(__FILE__);
?>
</p>
</body>
</html>