Re: New line characters and carriage returns

From: Date: Sat, 25 Oct 2003 09:15:52 +0000
Subject: Re: New line characters and carriage returns
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167595@lists.php.net to get a copy of this message
Jonathan Villa wrote:
$msg .= "From: me@mydomain.com\r\n Content-Type: text/plain\r\n" PHP is retaining the implicit linefeed in the text so there is a blank line between From and Content-Type, the end-of-header indicator. (You must have a dos-ish system.)
Change it to: $msg .= "From: me@mydomain.com\r\n" . "Content-Type: text/plain\r\n";
$fileName = 'errors.'.date('dmY').'.log'; The log files will sort a lot more sensibly if you use 'Ymd'.
-- jimoe at sohnen-moe dot com

« previous php.general (#167595) next »