I am trying to read/parse a .csv file, but when I output to the borwser all I get is machine code. Here is the code I am using to read and output the file.
$handle = fopen("report.csv", "r");
while ($data = fgetcsv($handle, 2000, ","))
{
foreach ($data as $key => $value)
{
echo "$key - $value<Br>";
}
}
fclose($handle);
seems pretty straight forward but am I missing something here? Thanks in advance.