Failed to open Stream: conundrum of the include when using FTP
<p>I am not on a local server. I am using DW CS 5.0 and I have a hosting service with an FTP running Linux. I am working off my windows partition because DW sadly doesn't work on linux. I have xampp installed but Apache/SQL/and filezilla are NOT running. All files are being sent directly to the testing server and my host ftp. I have DW set so links are relative to the site root. Not the documents. </p>

<p>My FTP has an absolute path: var/chroot/home/content/22/10350022/html/</p>

<p>I am trying to link up my setup.php file with my index.php and the rest of my headers, navs, footer...etc etc. When I use the basic string in my index.php: </p>

<pre><code>include (Config/Setup.php);
</code></pre>

<p>It seems to become linked. Now I was told his was a poor way to structure dynamic content. When I attempted to do it this way, my navigation between pages didn't work properly. Among other issues. </p>

<p>When I attempted to use: </p>

<pre><code>&lt;?php #main doc index 


    set_include_path('var/chroot/home/content/22/10350022/html');

    include ($_SERVER['DOCUMENT_ROOT'] . "/Config/Setup.php"); ?&gt;

    &lt;?php 
    // Define our array of allowed $_GET values

    $pass = array('tutorials','affiliates','contact_us'); 

    // If the page is allowed, include it:

    if (in_array($_GET['page'], $pass)) {


    include($_SERVER['DOCUMENT_ROOT']. '/' . $_GET['page'] . '.php');

    }
    // This will load the default page:

    elseif (!isset($_GET['page'])) {


    include($_SERVER['DOCUMENT_ROOT']. "/content/home.php");

    }

    // If the page is not allowed, send them to an error page:

    else {

    // This send the 404 header

    header("HTTP/1.0 404 Not Found");

    // This includes the error page

    include ($_SERVER['DOCUMENT_ROOT'] . "/error.php");

    }

    ?&gt;
</code></pre>

<p>I could not get any of the content to link up with my index.php page. My original path before I rewrote it in that string was: </p>

<pre><code>include_path='.:/usr/local/php5_3/lib/php
</code></pre>

<p>Now it gives me this error when I try to load the index.php: </p>

<blockquote>
  <p>Warning:
  include(/var/chroot/home/content/22/10350022/html/Config/Setup.php)
  [function.include]: failed to open stream: No such file or directory
  in /home/content/22/10350022/html/index.php on line 5</p>
  
  <p>Warning: include() [function.include]: Failed opening
  '/var/chroot/home/content/22/10350022/html/Config/Setup.php' for
  inclusion (include_path='var/chroot/home/content/22/10350022/html') in
  /home/content/22/10350022/html/index.php on line 5</p>
</blockquote>

<p>it also states the same error for line 60</p>

<p>which is : </p>

<pre><code>&lt;div class ="navs   tempBloc"&gt;
    &lt;?php include($_SERVER['DOCUMENT_ROOT']."/navs.php")?&gt;

    &lt;/div&gt;
</code></pre>

<p>I have spent way longer than I should looking for an answer to this. So any help at all would be INCREDIBLY MAJORLY APPRECIATED. Since this problem is the root cause of my navs issue. </p>

<p>THANKS!</p>
