Codice PHP:
$file file('tuofile.txt');
echo 
'<table>';
foreach(
$file as $riga) {
    echo 
'<tr>';
    
$val explode(',',$riga);
        foreach(
$val as $sing)
            echo 
'<td>'.$sing.'</td>';
echo 
'</tr>';
}
echo 
'<table>'