everything works now tnx
----- Original Message ----- From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Andy B" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php