Re: "\n" doesnt work in error_log and windows?

From: Date: Fri, 09 Apr 2004 15:04:34 +0000
Subject: Re: "\n" doesnt work in error_log and windows?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182987@lists.php.net to get a copy of this message
everything works now tnx ----- Original Message ----- From: "Jay Blanchard" <jay.blanchard@niicommunications.com> To: "Andy B" <aborka1@wmis.net>; <php-general@lists.php.net> Sent: Friday, April 09, 2004 10:45 AM Subject: RE: [PHP] "\n" doesnt work in error_log and windows? [snip] i have this sort of a log string: error_log("\n".$date.":".$_SESSION['username'].":Logged in:normal login\n", 3, $LogPath."admin.log"); problem is when it writes the entry in a file the first one shows up fine but when you get 2 or more in it then it either strings the lines together (the second entry will start on the same line as the one before it) so i added the "\n" at the front of it to force the next one to the next line... this works but now there is a "blank" space before each entry and its annoying... how to fix?? [/snip] Since this is Windows try \r\n at the EOL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#182987) next »