Same file two different results
<p>If I use this code </p>

<pre><code>&lt;?php
  include $_SERVER['DOCUMENT_ROOT'] . '/includes/header.php';
?&gt;
</code></pre>

<p>I get the functions of the file im calling but do not get the layout/format or file images.</p>

<p>If I use this code</p>

<pre><code>&lt;?php
  $includeFile = file_get_contents("http://www.YourDomain.com/includes/header.php");
  echo $includeFile;
?&gt;
</code></pre>

<p>I get the formatted layout but the search field does not function. Is there a way to combine the two codes to get the layout and the functions?</p>
