title: MAMP php includes
body: <p>I'm not a php developer but I'm fiddling with MAMP. I've installed MAMP and my php include() calls aren't working.</p>
  
  <pre><code>[13-Jul-2010 19:23:30] PHP Fatal error:  require_once() [&lt;a href='function.require'&gt;function.require&lt;/a&gt;]: Failed opening required '1' (include_path='.:/Applications/MAMP/bin/php5.3/lib/php:/Applications/MAMP/htdocs/mt_sandbox/php/') in /Applications/MAMP/htdocs/mt_sandbox/php/email/owner_emails.php on line 5
  </code></pre>
  
  <p>As you can see there, I was trying to edit my php.ini file to use a second include path to the 'php' directory of my project 'mt_sandbox'.</p>
  
  <p>Here are the exact includes</p>
  
  <pre><code>require_once("Mail.php") or die ('php load error for Mail.php');
  
  require_once('/Applications/MAMP/htdocs/mt_sandbox/php/email/email_manager.php') or die ('php load error for email/email_manager.php');
  </code></pre>
  
  <p>The die messages aren't firing because I'm getting the PHP Fatal error.</p>
  
  <p>Can anyone tell me what I'm doing wrong? How can I get setup to use includes in my scripts?</p>