ID: 20499 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 4.2.3 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2002-11-19 12:52:58] [EMAIL PROTECTED] I have been trying to use newline operators and tabs in the error_log() function but for some reason they are treated as literals and I can not get newlines written into the logfile nor tabs. as you can see bellow I have tried it with an array element and a string also with \r\n or \n or \\n or \n\n.. no joy I just get everything appended to the same line.. shame //example line: error_log($error[0|1][n],3,$errorLog); // timestamp for the error entry $dt = date("Y-m-d H:i:s"); /////////////// $error[0][0] = '\t' .$dt. 'Failure: capture HTTP page request variable\n';//mark [FATAL] //$error[1][0] = '\t' .$dt. 'Success: capture HTTP page request variable\n'; $errorString = '\t' .$dt. '\tSuccess: capture HTTP page request variable\r\n'; $error[0][1] = '\t' .$dt. 'Failure: capture HTTP method request variable\n';//mark [WARNING] //script excerpt if ($request = getenv('REQUEST_URI')) { error_log($errorString,3,$errorLog); }//end if($request.. else { error_log($error[0][0],3,$errorLog); }//end else ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20499&edit=1