Posts Tagged ‘auto_detect_line_endings’

ini_set() Can be your friend… May 18, 2009 No Comments

Just BTW. If you ever have that annoying ^M end of line issue in a php script, say someone created a CSV file on a windows machine and your script refuses to open the file as multiple lines… try this setting

ini_set(’auto_detect_line_endings’,TRUE);
It’ll auto detect not only MSDOS new line characters, but also Mac ones. This is [...]