fsefco Posted January 25, 2005 Posted January 25, 2005 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. Here is the top of my index.php file: <?php $includesDir = $_SERVER['DOCUMENT_ROOT'] . '/includes/'; $bodyclass = "main"; $bodyid = "homepage"; include $includesDir . 'header.php'; ?> This results in... 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 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. Quote
TCH-Andy Posted January 25, 2005 Posted January 25, 2005 Hi, This will not work properly until your domain name has propagated, and you are using the domain name rather than the IP address. Quote
TCH-Bruce Posted January 25, 2005 Posted January 25, 2005 Welcome to the family and forums fsefco! Glad you could join us. Quote
TCH-Don Posted January 26, 2005 Posted January 26, 2005 Welcome to the Family and your new home! We really are like family here. So if you need anything, just ask your new family! We love to help Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.