Php $_server['document_root'] Failing

liunx

Guest
I just opened an account with TCH. I am in the process of re-routing my DNS servers for my domain. In the meantime I am using the Ip address to look at my uploaded files. I use php to point to include files using the document root.<br /><br />Here is the top of my index.php file:<br /><br /><?php<br />$includesDir = $_SERVER['DOCUMENT_ROOT'] . '/includes/'; <br /><br />$bodyclass = "main";<br />$bodyid = "homepage";<br />include $includesDir . 'header.php';<br />?><br /><br />This results in...<br /><br />Warning: main(/usr/local/apache/htdocs/temp/includes/header.php): failed to open stream: No such file or directory in /home/eatshop/public_html/index.php on line 6<br /><br /><br />Any help would be great. i'm not sure why it is looking in that apache dir? the document root should lead me to public_http or whatever that root directory is.<!--content-->
Hi,<br /><br />This will not work properly until your domain name has propagated, and you are using the domain name rather than the IP address.<!--content-->
Welcome to the family and forums fsefco! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br />Glad you could join us.<!--content-->
<img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Welcome to the Family <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> <br /><br />and your new home!<br /><br />We really are like family here.<br />So if you need anything,<br />just ask your new family!<br />We love to help <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Welcome to you new home, fsefco!<!--content-->
Welcome to the family <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Moving for organization<!--content-->
 
Back
Top