$DB_site not recognised.
I'm trying to log in from another part of my website.
I do this:
chdir ( '../../public_html/forums' );
require_once 'global.php';
And get this error:
Fatal error: Call to a member function on a non-object in /home/wa/public_html/forums/includes/sessions.php on line 73
Which is on a $DB_site line call..
I checked in includes/init.php and the $DB_site object is created just fine. Why isn't it accessible from within sessions.php?
Thanks!
|