Location: PHPKode > projects > Esp php p2p project > p2p/other/filecsv2table.php
<?PHP
$row = 1;
$fp = fopen ("dayy.txt","r");
while ($data = fgetcsv ($fp, 1000, ",")) {
    $num = count ($data);
   print "<p><br>\n";  //$num fields in line $row: <br>";
    $row++;
    for ($c=0; $c < $num; $c++) {
        print $data[$c] ; //. "<br>";
    }
}
fclose ($fp);

?>
Return current item: Esp php p2p project