I have an Excel Template that i use to fill in data and export that to CSV to populate the following page on my website.
http://play.mink7.com/ifocus_v4/careers.php<
PHPs file functions do not reliably recognize line endings from Macs (if they use \r
character, as Mac Excel does, if I recall correctly.)
You need to set auto_detect_line_endings in php.ini to true, then it will properly recognize line endings, whether they are \n
, \r
, or \r\n
.
This setting is PHP_INI_ALL, which means that it can be set anywhere, i.e., in php.ini, in .htaccess
for a particular directory, or even with ini_set
, e.g., ini_set('auto_detect_line_endings', true)