$curdir = getcwd (); chdir('/yourpath/to/site/public_html/forum'); require_once('/yourpath/to/site/public_html/global.php'); chdir ($curdir);