\n outputs \r\n ??

From: Date: Thu, 29 May 2003 18:38:17 +0000
Subject: \n outputs \r\n ??
Groups: php.general 
Request: Send a blank email to php-general+get-149469@lists.php.net to get a copy of this message
Still new to PHP - any assistance would be very much appreciated... I am using a php script to send info to a local file for mail filtering. Whe the php script sends the following: fputs($nf, "MAILDIR=$MAILDIR # Default mail directory\n"); the output actually has a chr 13, 10 ProcMail interprest the CR as a part of the phrase it is using for parsing, so when it goes to send a filter out to a folder (testing in my case) it appends a CR to the end of it, which goofs up the user mail agent. It also goofs up the filter itself, as it is looking for a CR in the criteria. Is there a way to force it to only output a LF, not CRLF? Configuration issue? Michael Isaacs

« previous php.general (#149469) next »