Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
slick_303
Hangin' Around



Joined: Feb 28, 2007
Posts: 34

PostPosted: Wed Mar 28, 2007 3:20 pm Reply with quote

I'm wondering why sometimes an '@' is used before require and include statements. When would you use '@include_once', and when just 'include_once'? What's it do? What's da difference?


Thanx,
SLiCK_303
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Wed Mar 28, 2007 4:16 pm Reply with quote

It turns off error messages associated with the include.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
slick_303







PostPosted: Wed Mar 28, 2007 6:43 pm Reply with quote

kguske wrote:
It turns off error messages associated with the include.


hmm, ok....thanx for the info
 
kguske







PostPosted: Thu Mar 29, 2007 3:39 am Reply with quote

It's really only useful if you can't, for some reason, turn of display_errors. But even if your host has that on by default, you can override it in php-Nuke. If I remember correctly, it's overridden in config.php (or, if you're using RavenNuke, rnconfig.php).
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu Mar 29, 2007 7:07 am Reply with quote

It is definitely in config.php and is this line here:

$display_errors = FALSE;

It works much better in RavenNuke(tm) 2.10.x though... Wink

rnconfig.php allows you to control just what level of reporting that you want to see. It defaults to this:

$error_reporting = E_ALL^E_NOTICE;

Which essentially will only show you the fatal run-time errors. There are instructions in the RN file showing how to adjust that if you need to see more than that.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©