Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
CodyG
Life Cycles Becoming CPU Cycles



Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island

PostPosted: Mon Oct 16, 2006 5:28 pm Reply with quote

I'd like to turn off the error reporting on my nuke 6.9 site.
Can I do this like it's done in newer versions of nuke?

If I put this in mainfile.php ... before $phpver = phpversion();
Code:
// Error reporting, to be set in config.php

// Modified by Raven 11/22/2005
error_reporting(E_ALL^E_NOTICE);
if($display_errors) {
        @ini_set('display_errors', 1);
//  error_reporting(E_ALL^E_NOTICE);
} else {
        @ini_set('display_errors', 0);
//  error_reporting(0);
}


And this in config.php

Code:
$display_errors = FALSE;  //This should only be used (set to TRUE) when testing locally and not in a production environment   


Or is there a better way to do it ? I don't want to turn off error reporting globally for all domains, just this one.

Thanks.

_________________
"We want to see if life is ubiquitous." D.Goldin 
View user's profile Send private message
srhh
Involved
Involved



Joined: Dec 27, 2005
Posts: 296

PostPosted: Mon Oct 16, 2006 6:40 pm Reply with quote

That should do it.
My understanding is that when you turn on error reporting in your config nuke file, if there IS an error, then you will see it only your Nuke page. (Usually in the top corner somewhere) If error reporting is off, then you won't see anything up there if there is an error or not.

This is a different function than your server error logs, I believe. The server error logs will pick up everything on your domain(s) (i.e. missing images, bad URL's, etc)
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Oct 17, 2006 3:05 am Reply with quote

Thats is correct.
The 'switch' is in config.php which is including only in a nuke site so it will not affect anything outsite of nuke.
 
View user's profile Send private message Send e-mail
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©