Thanks a lot Lynne, init.php did the trick for me.
The posts I read mostly said to add global.php but in my case that introduced a recursive call to the header template. (which eventually crashed the browser).
Incase anyone is reading, I needed to add the following right at the top of myPHPfile.php to get things working:
Code:
define('VB_AREA', 'Forum');
define('THIS_SCRIPT', 'myPHPfile');
require_once("./includes/init.php");