Hey there..
I am having problems... i'm not too much experianced with php.. just starting to learn it.. but i'm messing with PHPNuke Content Management System and i run into problems...
i'm trying to make a simple Guestbook Module (add-on) for PHPNuke... and i do this by including the Guestbook's index.php that also has some "include("example.php");" which are in the Guestbook's directory and NOT the PHPNuke root dir.
some/directory/phpnuke
some/directory/phpnuke/guestbook
and i do this by having a index file with this;
<?
include("header.php"); // this calls the PHPNuke's header
include("guestbook/index.php");
include("footer.php"); // and the PHPNuke's footer which need to be here.
?>
however.. when i try loading the script through PHPNuke, it gives me errors that it can't find example.php (mentioned above) because its looking for the file in
"some/directory/phpnuke"
and not
"some/directory/phpnuke/guestbook"
.....
so my question is.. is there a way to change it so that the "guestbook/index.php" can be loaded and not having it to think that the rest of the files are in the "some/directory/phpnuke"..
thanks so much..
i hope i explained this right ... :S