PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
CodyG
PHP-Portal Project


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

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

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.
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 Back to top

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: 4868

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

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 Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum