/ Published in: PHP
This code reads a CSV file and extracts each item into the appropriate variable for processing.
Expand |
Embed | Plain Text
Comments
Subscribe to comments
You need to login to post a comment.

/Users/Heike/Desktop/250K-f10-080608.csv.download
Just as a pointer, calling fgetcsv() using the length of 1000 MUST ensure that the longest line is at MOST 1000 characters long. Also, for generally large CSV files, calling list() to load column into a variable may not be advantageous...the $data variable returned is an indexed array of each column.