$previousdir = getcwd(); define('VB_AREA', 'Forum'); chdir ( "C:/path/to/site/httpdocs/forums" ); require_once("global.php"); require_once("/includes/init.php"); chdir ( $previousdir );