title: Php include not working? function not being included
body: <p>Here is the full context of the situation:</p>
  
  <p>I recently got a new Mac, I'm a php developer so I downloaded MAMP and started developing.</p>
  
  <p>First I noticed that my includes were not being included, but I changed that by configuring my <code>php.ini</code>.</p>
  
  <p>However now, when I try to include a file with a function it does not recognize the function.</p>
  
  <p>For example I have a file named <code>functions.php</code>:</p>
  
  <pre><code>&lt;?php
  function doit(){
      echo "did it";
  }
  ?&gt;
  </code></pre>
  
  <p>and a file that includes it called index.php</p>
  
  <pre><code>&lt;?php include("functions.php"); doit();?&gt;
  </code></pre>
  
  <p>and I get this error message</p>
  
  <p>Fatal error: Call to undefined function doit() in index.php on line 4</p>