about nntp.php and error_log [message #9789] |
Wed, 23 April 2003 18:04 ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
redhat71
![China China](/forum/images/flags/cn.png) Messages: 32 Registered: February 2003
Karma: 0
|
Member |
![123549394](/forum/theme/default/images/icq.png)
|
|
i run nntp.php in cron as suggested
i noticed that when it succeeds, cron sends me a mail with the result
when it fails, error messages are put in error_log
but i'd like to get a mail from cron when it fails, that's more convenient
what do i need to do to make it work this way ? thanks
|
|
|
|
|
Re: about nntp.php and error_log [message #9941 is a reply to message #9854] |
Tue, 13 May 2003 14:02 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) |
Ilia
![Canada Canada](/forum/images/flags/ca.png) Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hmm actually if there are php errors they will go to stdout, as far as forum errors. You need to modify the exit_handler() method inside nntp.inc and make it print the errors not only to a file but to stdout like this:
<?php $fp = fopen("php://stdout", "w"); fwrite($fp, $this->error); fclose($fp); ?>
FUDforum Core Developer
|
|
|