You could always put the csv contents on a multi-dimensional array as you are reading each line. When you read the line, you check to see if all the data is complete, then you check against the array for duplicates, if it passes both tests, then you enter the new line into the array.

I don't know how efficient this is with a 10MB file, but I'd say it's worth a try.

Alvaro

Aniesh joseph wrote:
Hello


I have to read large CSV file upto 10 MB size. I tried to read each line by using getcsv() method, but cannot worthy. I have to make some checking the contents of the CSV files such as any duplicate row, or any row missing contents etc.

Can anybody suggests a method to read large file of CSV files ?

Regards
Aniesh Joseph
------------------------------------------------------------------------

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to