1
I solved my problem. Thanks again.
On my site, I have many custom HTML pages that directly link to files in categorized directories. I used the info from
Custom HTML Page FAQ in Xoops. When I have the base (index) file in the root dir, it works great.
Example. It links to index files in each sub dir, however when I add the code to wrap the page in the sub dirs, I get this
error. For some reason it seems PHP is treating the current dir as document root. My site root is /var/www/rgt/. When I have another index.php in a sub dir such as /var/www/rgt/ebooka/ad&d/index.php is it treating the current working dir as root so it never is able to call /var/www/rgt/mainfile.php and errors out. I am using the wrapper code of:
include("./mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
Like I said, if the ebook.php is in the site root, it works as it should, but if the index.php is in a sub dir of the site root, it errors out. Any help from those of you better versed in PHP and XOOPS would be most appreciated. So far all of my questions have been found here, but this one has me stumped. Thanks in advance.