title: Ajax call to a php file not working with 'require_once' in that file
body: <p>I basically have an ajax call to a php file:</p>
  
  <pre><code>$("#acceptBtn").click(function(){
       $.ajax({
       type: "POST",
       url:"acceptOfferFunction.php",
       data: {hash2: getURLParameter('hash2')},
       success:function(result){
           alert(result);
       }
  });
  </code></pre>
  
  <p>And for the sake of clarity here's the reduced version of that file illustrating the problem:</p>
  
  <pre><code>&lt;?php
       session_start();   
     //require_once 'AcceptAnOfferFromEditor.php';
       echo('foo');
   ?&gt;
  </code></pre>
  
  <p>This works, 'foo' gets alerted, but should I uncomment the <code>require_once</code> statement, it doesn't anymore. </p>
  
  <p>The included file is a php class with many functions. It would be convenient to able to call them. </p>