@VeoMorphine, line 6 is $path2 = "forums";
I see you are using windows, what did you put for $path?
@sabret00the, if you are including into a .php file that is sending a header then remove these two lines from buddy.php:
PHP Code:
chdir("$path");
require("./global.php");
and add this to the top of the .php file that you are including buddy.php into, under <?php
if you need more help, post the file that you are adding buddy.php to.
PHP Code:
chdir("/path/to/forums/");
require("./global.php");
// rest of your file...