note 96150 modified in function.fgetcsv by danbrown
| From: | danbrown@php.net | Date: | Thu, 11 Feb 2010 15:14:11 +0000 |
| Subject: | note 96150 modified in function.fgetcsv by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165875@lists.php.net to get a copy of this message | ||
<?php ini_set('auto_detect_line_endings', true); ?>
--didn't work for me at first. I had to also add:
<?php stream_get_line($handle, 4096, "\r"); ?>
With both statements it works like a dream.
--was--
ini_set('auto_detect_line_endings', true)
--didn't work for me at first. I had to also add:
stream_get_line($handle, 4096, "\r");
With both statements it works like a dream.
http://php.net/manual/en/function.fgetcsv.php