RE: [PHP] "\n" doesnt work in error_log and windows?

From: Date: Fri, 09 Apr 2004 14:45:40 +0000
Subject: RE: [PHP] "\n" doesnt work in error_log and windows?
Groups: php.general 
Request: Send a blank email to php-general+get-182985@lists.php.net to get a copy of this message
[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

« previous php.general (#182985) next »