Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Randy Jackson
November 3, 2004, 10:14 pm
rate this thread
file. I'm doing this for work on remote servers where I may not have
access to their error.log.
Anyway, the code I've written does not seem to be working. Errors are
still being logged to the Apache logs, and I'm having a difficult time
figuring out why.
Here's the code I'm using:
I've checked file permissions, and everything is set to 777, so that
shouldn't be an issue. I've also tried entering the entire path with the
filename, but that didn't work either.
Re: Setting a Custom Error Log
I don't know about the error logging feature of php. But if you want to
make a redirect i guess you need to set up an error handler function
anyway. So maybe you can do the logging from there. See
There is an error handler class here:
phpPeanuts also has one, see:
(This class is part of a much larger framework, but if i am right it
should require only a very few classes from the framework. Please let me
know if you think we should make this available as a separate download).
Randy Jackson wrote: