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.
..
Moderator: General Moderators
-
jarofgreen
- Forum Commoner
- Posts: 71
- Joined: Sun Jul 11, 2010 12:40 pm
Re: PHP Error Logging help
Last edited by jarofgreen on Thu Nov 18, 2010 5:14 pm, edited 1 time in total.
Re: PHP Error Logging help
I know you don't have "direct access" to you php.ini file. Does this mean you can't do something like this:
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.
Code: Select all
set_error_handler('error_handler',E_ALL);
function error_handler($errNo,$errStr,$errFile,$errLine)
{
// blah blah
}