title: How to include php files using MAMP
body: <p>I am trying to include a php file using a MAMP localised server:</p>
  
  <pre><code>$path = "../function/function.php";
  include_once($path);
  </code></pre>
  
  <p>This path just doesn't seem to work. What paths do I need to use in order to include php files into other php files using MAMP locally?</p>
  
  <p>The path that works when I type in the browser is:</p>
  
  <pre><code>http://localhost:8888/function/function.php
  </code></pre>