It's been several years since I've messed with PHP. But now I'm trying to do phpBB Sessions Integration following this guide: phpBB Sessions Integration. The thing is, it won't work unless I go and define all the globals the phpBB app needs because they end up being null at runtime inside the functions.
So the code in the linked guide only works when I add this line of php code above it:
global $_SID, $auth, $cache, $config, $db, $phpbb_root_path, $phpEx, $SID, $template, $user;
This isn't optimal since I'll have to keep updating this global declaration each time a new global variable is introduced into the phpBB codebase. :( Is there some kind of php ini setting that I should tweak or something to make it to where I don't have to declare these?