Re: PHP log errors



Rik Wasmus wrote:
On Sun, 30 Dec 2007 11:45:35 +0100, twomt <no-reply@xxxxxxxxxxxxxx> wrote:
I am logging errors into a phperrors.log file and not anymore display them through the browser.

A very wise descision.

Only problem I have now is that it does not show errors generated by php scripts called from the browser, but only by those that are executed from the command line or through cron.

Does anyone have an idea if I am doing something wrong here?

display_errors = Off

log_errors = On
error_log = /home/user/domain/public_html/phperrors.log

Possibly the cli and the webserver use a different php.ini. What does a phpinfo() in both tell you? And if not, has the webserver write priviliges to your logfile?
--Rik Wasmus

So simple...

Thanks for the push in the right direction ;)

--
Nemesis War
Online browser based space combat game.
It's free, it's great, you'll love it.
Come join us at http://www.nemesiswar.net/
.



Relevant Pages

  • Re: =?ISO-8859-1?Q?Bezugsm=F6glichkeit?= Connex-Ketten
    ... Was nutzt du denn für einen Browser, ... Webserver das Geschlecht des Admins abfragt und auch gleich noch ...
    (de.rec.fahrrad)
  • Re: Hohlstab?
    ... wozu ein Webserver Lotus Notes braucht... ... dass Links aus dem usenet nicht funktionieren. ... Wenn ich meinen im Thread gesetzten Link anklicke, ... Nur via Browser resp. ...
    (de.etc.sprache.deutsch)
  • Local C/C++ application that serves HTML pages
    ... like a CGI script without a webserver. ... The problem is how to interface it with the browser. ... The executable should behave similarly to a CGI script, ...
    (comp.programming)
  • Re: Security question regarding root email
    ... >>> By default apache looks for the favicon.ico. ... If it was browser based, ... and the webserver logged it. ... If a web author puts an explicit link in their pages to the favicon.ico ...
    (Fedora)
  • Re: How to execute a tasks if the time is 22:30:45
    ... this script work stand-alone in server and don't need any browser. ... cron check and time now 12:34:00 ... run exec command ...
    (comp.lang.php)