Ok, so I have changed the code to :
PHP Code:
<?php
function test() {
global $phrasegroups;
global $specialtemplates;
global $globaltemplates;
global $actiontemplates;
chdir('/home/wa/public_html/forum/');
$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array();
$actiontemplates = array();
require_once('./global.php');
}
test();
?>
But it still doesn't work