title: Wrapper is disabled in the server configuration by allow_url_include=0
body: <p>I am trying to retrieve page contents with an <code>AJAX</code> call.  I have a series of links within a page wrapper.  When I click on a link, it loads a JavaScript function that retrieves page contents from a <code>php</code> script.  In this case I am developing on my <code>localhost</code>, but in production the script will be within the same root folder and domain as the file that does the <code>AJAX</code> call.  I am using the response as the content for a <code>div</code>.  The content isn't purely <code>PHP</code>, and by that I mean while it is generated by php it has <code>HTML</code> elements like <code>div</code>s and spans.  It's basically the stuff that is going between the opening and closing body tags.  Because of this, I'm not sure I can just use <code>json_encode</code>.</p>
  
  <p>Instead of the content loading in the <code>div</code>, I get the following error:</p>
  
  <blockquote>
    <p>Warning: require_once() [function.require-once]: http:// wrapper is
    disabled in the server configuration by allow_url_include=0</p>
  </blockquote>
  
  <p>After reading up on <code>allow_url_include</code> it seems that this is usually disabled by default.  I'm assuming that this feature allows for some serious site attacks.  Is that the case.   If so, how can I retrieve the content from another file?  </p>
  
  <p>I tried using the <code>JQuery</code> load function:</p>
  
  <pre><code>$('#content').load('pages/test_page.php');
  </code></pre>
  
  <p>but with the exact same results.</p>
  
  <p>This is driving me nuts!  TIA.</p>
  
  <p><strong>EDIT:</strong>  I think I may have found the problem; the <code>php</code> file that the <code>AJAX</code> is retrieving content from is using <code>require_once</code>.  The file that it is requiring is on the same server within the same root folder, but it was one directory up.  HOWEVER, that creates a new problem:  I'm getting the content, but not fully.  For example, in the file I have this:</p>
  
  <pre><code>Title:  &lt;?php echo $details['title']; ?&gt;
  </code></pre>
  
  <p>I am only getting the first letter, and this holds true for other <code>php</code> content that I <code>echo</code>.</p>