Jump to content

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...