$line) $total_lines++; //reading file $filename = fopen($filename,"r"); for ($i = 0; $i < $total_lines; $i++){ ($data = fgetcsv($filename, 1000, "\t")); $total_fields = count($data); //reading each line (record) for($j = 0; $j < $total_fields; $j++){ //assigning values to new_array $new_array[$i][$j] = $data[$j]; } } fclose ($filename); ?>
file created, now just select the "view source" option on this page and copy/paste it!
\n"; for ($i = 0; $i < $total_lines; $i++){ print " \n"; print " " . $new_array[$i][0] . " \n"; print " " . $new_array[$i][0] . " \n"; print " \n"; } print " \n\n"; print "-->" ?>