$fh = fopen('csvdata.csv', 'rb');
if (! $fh) {
die("Can't open csvdata.csv: $php_errormsg");
}
print "\n";
for ($line = fgetcsv($fh, 1024); ! feof($fh); $line = fgetcsv($fh, 1024)) {
print '' . implode(' ', $line) . " \n";
}
print '
';
?>