about nntp.php and error_log [message #9789] |
Wed, 23 April 2003 18:04 |
redhat71
Messages: 32 Registered: February 2003
Karma: 0
|
Member |
|
|
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 |
Ilia
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
|
|
|