street 0 Report post Posted September 18, 2007 Can someone help me out i am having a problem with one of my pages i am trying to use the include code for my navigation and top links.Here is the pagehttp://forums.xisto.com/no_longer_exists/Php Code-All my include code have this path way just with diffrent names. I tried putting the path ways like /home/phpinclude/filename but that did not work. I have searched for a lot of tutorials but i have tried all and they have not helped. So can anyone help me out? <?PHP include($DOCUMENT_ROOT . "/phpincludes/top_link_1.php"); ?> Share this post Link to post Share on other sites
galexcd 0 Report post Posted September 19, 2007 Yes, just typing $DOCUMENT_ROOT only works if global variables have been forwarded to normal variables. Try this: <?PHP include($_SERVER['DOCUMENT_ROOT'] . "/phpincludes/top_link_1.php"); ?> Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted September 19, 2007 do you mean this? $_SERVER['DOCUMENT_ROOT'] http://ca3.php.net/reserved.variables Share this post Link to post Share on other sites
street 0 Report post Posted September 19, 2007 Thanks guys that help fixed it. Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted September 19, 2007 Topic is resolved.Please PM any moderator to continue this discussion. Until then, this topic is closed. Share this post Link to post Share on other sites