Jul 26, 2008

Php Include Problem [resolved]

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Php Include Problem [resolved]

street
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://www.neoevolution.net/neo_guides/Kadoatie.php

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?
CODE
<?PHP
      include($DOCUMENT_ROOT . "/phpincludes/top_link_1.php");
      ?>

Reply

galexcd
Yes, just typing $DOCUMENT_ROOT only works if global variables have been forwarded to normal variables. Try this:

CODE
<?PHP
      include($_SERVER['DOCUMENT_ROOT'] . "/phpincludes/top_link_1.php");
      ?>

Reply

jlhaslip
do you mean this?

CODE
$_SERVER['DOCUMENT_ROOT']


http://ca3.php.net/reserved.variables

Reply

street
Thanks guys that help fixed it.

Reply

jlhaslip
Topic is resolved.

Please PM any moderator to continue this discussion. Until then, this topic is closed.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : php resolved


    Looking for php, include, problem

Searching Video's for php, include, problem
advertisement



Php Include Problem [resolved]



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE