$cwd = getcwd(); echo "cwd $cwd"; @chdir($_SERVER['DOCUMENT_ROOT'] . '/bb/'); include_once('global.php'); chdir($cwd);