$fp = fopen('data.csv','r') or die("can't open file");
print "\n";
while($csv_line = fgetcsv($fp)) {
print '';
for ($i = 0, $j = count($csv_line); $i < $j; $i++) {
print ''.htmlentities($csv_line[$i]).' ';
}
print " \n";
}
print '
\n';
fclose($fp) or die("can't close file");
?>