Page 1 of 1

Re: PHP Error Logging help

Posted: Thu Nov 18, 2010 5:04 pm
by jarofgreen
If your interested in logging errors have a look at our open source project http://elastik.sourceforge.net/ - some info on our error logging service is at http://sourceforge.net/news/?group_id=317819&id=293422

If that's to much and you just want your original problem solved ... you aren't logging in Linux and opening the Log file in Windows are you? If so try using the Notepad++ editor which should be able to handle that.

Re: PHP Error Logging help

Posted: Thu Nov 18, 2010 5:09 pm
by Eric!
I know you don't have "direct access" to you php.ini file. Does this mean you can't do something like this:

Code: Select all

set_error_handler('error_handler',E_ALL);
function error_handler($errNo,$errStr,$errFile,$errLine)
{
  // blah blah
}
Are you sure the file you are trying to read doesn't have a new line character inserted already and whatever tool you're using to view it is looking for the CR/LF (or html <br />)? Perhaps you could write a script to view it in html via nl2br() real quickly to test it.