Windows, Linux/Unix and Mac have different line-endings on text files.
A quick overview on the endings are:
- Windows-style line endings are CRLF ( \r\n or hex 0D0A )
- Mac-style line endings are CR ( \r or hex 0D )
- Unix-style line endings are LF ( \n or hex 0A )
A HEX editor can be used to double check that the correct endings are written.
I’ve today learnt that, in PHP, one can use PHP_EOL to avoid headaches
http://stackoverflow.com/questions/128560/when-do-i-use-the-php-constant-php-eol
sorry I missed this link
http://us3.php.net/manual/en/reserved.constants.php