ktlacaelel / php-csv-parser

Automatically exported from code.google.com/p/php-csv-parser
0 stars 0 forks source link

Problem with fgetcsv auto_detect_line_endings #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was having issues with importing a CSV file. Turns out the problem was
with fgetcsv not being able to detect line endings.

Solution is to add this to the constructor:
ini_set('auto_detect_line_endings', true);

Refer to:
http://php.net/manual/en/function.fgetcsv.php

Original issue reported on code.google.com by alex.pa...@gmail.com on 13 May 2010 at 3:41

GoogleCodeExporter commented 9 years ago
i had the same issue..thanks for sharing the solution.

Original comment by Laptopsc...@gmail.com on 7 Jun 2010 at 7:56

GoogleCodeExporter commented 9 years ago
 I aksi had same issue.. Thanks for sharing... :)

Original comment by nt.bhagw...@gmail.com on 5 Apr 2011 at 6:51

GoogleCodeExporter commented 9 years ago
This worked for me, thanks for posting

Original comment by griffith...@gmail.com on 30 Aug 2011 at 3:00

GoogleCodeExporter commented 9 years ago
Tnx so much :)

Original comment by elena.tu...@gmail.com on 31 Jul 2013 at 1:56