Re: fgets function for very large files
| From: | Michael A. Peters | Date: | Sat, 23 May 2009 08:06:37 +0000 |
| Subject: | Re: fgets function for very large files | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293008@lists.php.net to get a copy of this message | ||
shahrzad khorrami wrote:
one thing! I need four fields of 7 fields in each line, in my code from original csv file first four of fields choose(mappping these fields with columns of table in db) for example: a line in csv file: "a","b","c","d","e","f","g" in table of database 4 column : name,ext,tel,date that 4 field of csv file must map to these column then I can't directly import my csv file into db. some process must do to insert just my selected fields of csv file...use awk to read the file and create a .sql file with the specified fields you want.