Welcome Guest ( Log In | Register)



 
Closed TopicStart new topic
> Php Include Problem [resolved]
street
post Sep 18 2007, 11:46 PM
Post #1


Super Member
*********

Group: [HOSTED]
Posts: 255
Joined: 21-January 07
Member No.: 37,585



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");
      ?>
Go to the top of the page
 
+Quote Post
galexcd
post Sep 19 2007, 12:05 AM
Post #2


Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software.
***********

Group: [HOSTED]
Posts: 1,018
Joined: 25-September 05
From: L.A.
Member No.: 12,251



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");
      ?>
Go to the top of the page
 
+Quote Post
jlhaslip
post Sep 19 2007, 12:06 AM
Post #3


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,993
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



do you mean this?

CODE
$_SERVER['DOCUMENT_ROOT']


http://ca3.php.net/reserved.variables
Go to the top of the page
 
+Quote Post
street
post Sep 19 2007, 11:31 PM
Post #4


Super Member
*********

Group: [HOSTED]
Posts: 255
Joined: 21-January 07
Member No.: 37,585



Thanks guys that help fixed it.
Go to the top of the page
 
+Quote Post
jlhaslip
post Sep 19 2007, 11:40 PM
Post #5


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,993
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



Topic is resolved.

Please PM any moderator to continue this discussion. Until then, this topic is closed.
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Problem Installing Sims 2 Nightlife(26)
  2. I Have A Girl Problem Here(27)
  3. Problem With My Girlfriend Family, Need Suggestions For Action(2)
  4. Problem With Page Redirect(8)
  5. Remote Assistance Problem(8)
  6. Terminating Hosting Problem(1)
  7. Browser Compatibility Problem With Firefox - Javascript + Css(3)
  8. How Many More Times Will I Have To Post About This?(11)
  9. Domain Problem : This Is Important..(0)
  10. Skype / Xampp Port Conflict(5)
  11. Php Header Problem(11)
  12. A Problem With Ftp Clients(9)
  13. Youtube People That Do Not Respect Other Opinions(7)
  14. Laptop Keyboard Problem(7)
  15. Itunes Problem!(1)
  1. Problem Aligning In Firefox(9)
  2. Problem Getting Text To Align With Different Resolutions(4)
  3. Dvd Drive Problem(10)
  4. Hosting Problem [resolved](22)
  5. It Went Well For A While(5)
  6. Rpg Maker 2003 Music Problem(3)
  7. Two Lan Ports Problem(3)
  8. 60 Seconds Countdown That Shutdown The Pc(13)
  9. Need Help: Problem Seeing My Site(4)
  10. I Have A Big Problem With Cs 1.6.(4)
  11. I'm Having A Strange Problem With My Ping In Cs:s(28)
  12. Forum Problem? Topic Disappeared Immediately [resolved](2)
  13. Postage Costs Problem For My Website(7)
  14. Hosting Problem(moderators) [resolved](3)
  15. Problem Connecting To Phpmyadmin(2)


 



- Lo-Fi Version Time is now: 5th September 2008 - 01:41 PM