Vielen Dank für die ausführliche Antwort Tom. Leider bekomme ich aber eine Fehlermedung. Mein Code
$filename = $_FILES['csv_file']['tmp_name'];
$handle = fopen ($_FILES['csv_file']['tmp_name'], "r");
$content = fgets($handle);
$_record = array();
while (!eof($handle))
{
$_record[] = fget_csv($handle);
}
print_r($_records);
Die Fehlermeldung:
Fatal error: Call to undefined function eof() in /Users/username/Sites/php/readcsv.php on line 20
Zeile 20 ist die mit dem while. Kannst du nochmal helfen?