I am creating a reply file for one of my clients with \r\n at the end of each line. The problem is when the client gets the file on his side which is a windows environment the \r is dropped.
Any advice would be helpful.
Local environment is mysql -> php -> linux
remote environment is windows -> mssql
Below is the fwrite code that I am output to the file. If I view the file from my server everything is fine. The problem occurs at the client end.
$fp = fopen($file, 'a');
fwrite( $fp, $content."\r\n");