Jump to content
xisto Community
street

Php Include Problem [resolved]

Recommended Posts

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 page
http://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

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

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
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.