you can add this to be able to include the config.php regardless of your file's path
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(FILE, '.'), 1); include($phpbb_root_path . 'config.' . $phpEx);