Codice PHP:
if (!$p_file = fopen("dailylog.txt","r")) {
echo "Spiacente, non posso aprire il file dailylog.txt";
} else {
echo "<table>";
while(!feof($p_file))
{
$linea = fgets($p_file, 255);
$vect=explode(" ",$linea);
echo "<tr>";
foreach ($vect as &$value) {
echo "<td>".$value."</td>";
}
echo "</tr>";
}
echo "</table>";
fclose($p_file);
}
?>