Re: PHP log errors



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
.



Relevant Pages

  • 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)
  • Re: PHP log errors
    ... php scripts called from the browser, but only by those that are executed from the command line or through cron. ... Possibly the cli and the webserver use a different php.ini. ...
    (comp.lang.php)
  • Re: How to edit a read-only file
    ... It does not really matter if the editor is a gui ... <When you start a gui editor from the desktop, ... Just imagine what could happen if you start a web browser ... That is questionable, but for one, the command line ...
    (comp.os.linux.misc)
  • Re: IE6 Stops Working, Emails, Ping, Other ports just fine
    ... Server: tmtu.mt.rs.els-gms.att.net ... I can't access the google.com using its ip addr in my browser. ... > used by the connection your telnet command created. ... > XPsp2 has a new netsh command which could substitute: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: IE6 Stops Working, Emails, Ping, Other ports just fine
    ... Server: tmtu.mt.rs.els-gms.att.net ... I can't access the google.com using its ip addr in my browser. ... > used by the connection your telnet command created. ... > XPsp2 has a new netsh command which could substitute: ...
    (microsoft.public.win2000.networking)