Log in

View Full Version : Is it safe to global $DB_site?


WhisperPntr
02-02-2005, 06:42 AM
I'm wondering if it is safe to use global $DB_site or if it's better to require the needed file. If it is safer to use a require what files do I need to include to make my $DB_site connection work?

thanks!

miz
02-02-2005, 09:48 AM
if you talking on functions
then yes its safe

WhisperPntr
02-02-2005, 10:06 AM
ok thanks :) and yes on a custom function within a new php file.