title: php include cause internal server error 500
body: <p>In my PHP website when i m adding include('1.php'); line inside a function causing "Internal Server Error 500"</p>
  
  <pre><code>function load()
  {
      include("lib/data/1.php");
  }
  </code></pre>
  
  <p>this function is called via URL</p>
  
  <pre><code>http://localhost/xm/index.php?p=events&amp;q=load
  </code></pre>
  
  <p>'q' parameter is for load function</p>
  
  <p>but when i directly call 1.php file like :</p>
  
  <pre><code>http://localhost/xm/lib/data/1.php
  </code></pre>
  
  <p>it works fine</p>
  
  <p>1.php generates XML File like String.</p>
  
  <p>now in js i want to call load function</p>
  
  <pre><code>scheduler.load('index.php?p=events&amp;q=load');
  </code></pre>
  
  <p>this function takes url which returns XML file like string. i want load function to include 1.php file and return XML like string.</p>