Page 1 of 1
parsing a csv file
Posted: Tue Jul 21, 2009 2:38 pm
by cali_dotcom
hi, im not such a php expert and i want to parse a csv file located at
http://www.totalbeauty.com/resource/lists. does anyone know how i can do this, what to watch out for, the best way to do this and just general tips for parsing files.
thanks..
Re: parsing a csv file
Posted: Tue Jul 21, 2009 3:08 pm
by Darhazer
Use the fgetcsv() function
Re: parsing a csv file
Posted: Tue Jul 21, 2009 5:01 pm
by cali_dotcom
does anyone know how to get the max lenght of any line in the file? the fgetcsv() requires a lenght argument that should ne greater that the longest line in the file.
Re: parsing a csv file
Posted: Tue Jul 21, 2009 11:42 pm
by maheshchari
use maxfilesize()