ok, right now that page just has the phpinfo() for your site. but, let's try a different tactic. i'm going to make up an example of some scripts, and maybe you can apply the example to solving your problem. this example entails 4 files: hello.php, main/index.php, include/myInclude.inc, include/functions.inc; all under your /home/artcoura/public_html directory
/home/artcoura/public_html/hello.php
<?
include_once ($DOCUMENT_ROOT."/include/myInclude.inc");
?>
<html>
<body>
Hello, user. The current server time is <?= myCurrentTime() ?>.
<p>
Please <a href="/main/index.php">click here</a> to go to another page.
</body>
</html>
/home/artcoura/public_html/main/index.php
<?
include_once ($DOCUMENT_ROOT."/include/myInclude.inc");
?>
<html>
<body>
Hello again, user. Thanks for clicking that link. As a reward,
upon your death bed you will receive total consciousness.
<p>
Also, the current server time is <?= myCurrentTime() ?>.
/home/artcoura/public_html/include/myInclude.inc
<?
include_once ($DOCUMENT_ROOT."/include/functions.inc");
?>
/home/artcoura/public_html/include/functions.inc
<?
function myCurrentTime()
{
return date("h:i a");
}
?>
The moral of the story is this: $DOCUMENT_ROOT is only for creating paths to files so PHP can find them. When I made an href, I didn't use it; if I has included an image tag, I wouldn't have used it there; because those paths are for the web browser, not PHP. But I did use it for every call to include(). Did that help, or is it still clear as mud?