ok update
The following works
PHP Code:
if ($_GET["module"] == "forum") {
chdir('/Public_html/modules/forum');
include "/Public_html/modules/forum/index.php";
}
The next piece of code does not
PHP Code:
function somethingoranother() {
chdir('/Public_html/modules/forum');
include "/Public_html/modules/forum/index.php";
}
somethingoranother();
It seems to be the fact that I am including it from a function. I would like to get it to work from within a function and don't really know what the problem could be.