I put:
Code:
<?php
chdir("../forums/");
require('global.php');
?>
In the Login.php file that is included on the main page so it looks like this:
Code:
<?php
chdir("../forum/");
require('global.php');
?>
<html>
<font size="2" face="Tahoma"><?php include ("webwelcome.php"); ?></font>
</html>
That is all that is in that file. Then on my main page I have:
Code:
<? include "login.php"; ?>
Then you get the error when you first click the main page. But when you go on to the forum and back to the main page, it's gone! :-/