By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 2,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

PHP log errors

P: n/a
Hello,

I am logging errors into a phperrors.log file and not anymore display
them through the browser.

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

Thanks,
twomt

--
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/
Dec 30 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sun, 30 Dec 2007 11:45:35 +0100, twomt <no******@nemesiswar.netwrote:
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
Dec 30 '07 #2

P: n/a
Rik Wasmus wrote:
On Sun, 30 Dec 2007 11:45:35 +0100, twomt <no******@nemesiswar.netwrote:
>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/
Dec 31 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.