Hi I want to read a csv file line by line. i have written code but it give output in encrypted manner . my code is
$row = 1;
$handle = fopen($_FILES['csv']['tmp_name'], "r");
while (($data = fgetcsv($handle, 1000,",")) != FALSE) {
$num = count($data);
echo "<p> $num fields in line $row: <br /></p>\n";
$row++;
for ($c=0; $c < $num; $c++) {
echo $data[$c] . "<br />\n";
}
}
fclose($handle);