function store_dau() { $rows = array(); $tmp_file = fopen($_FILES['DAU']['tmp_name'], "r"); while ($row = fgetcsv($tmp_file, 0, "\t")) { $rows[] = $row; } $daustore = new DAUAdapter(); $daustore->store_dau($rows); shadow_upload($_FILES['DAU']['tmp_name']); }