PHP File System
What should you do if your script is having problem recognizing file endings from a text file saved on a platform different from the one you’re reading it on?
Read the file one character at a time
Use ftok()
Use a regular expression to detect the last letter of a line