Language: PHP
So I have a small utility being used by one of my clients and they have a bunch of different CSV files that they are uploading. The logic takes the file and reads it into an array using file(). HOWEVER, a few of the files apparently have different line break characters because it's reading the entire file as a single line. Is there a quick way to get around this without changing the code to read in the lines looking for all possible line break characters?
If I open the file in Excel, it reads it in just fine, so it is obviously using some sort of line break character that Excel can read, but that a linux filesystem cannot.