title: PHP: PEAR Calendar Grid Not Rendering in Browser
body: <p>Am trying to create a grid calendar using PEAR and PHP but when I preview the file in my browser I get the following:</p>
  
  <pre><code>*Warning: include(Calendar/Month/Weekdays.php) [function.include]:
     failed to open stream: No such file or directory
     in /Users/x/Sites/p/testing pages/Pear_Date.php on line 8
  Warning: include() [function.include]: Failed opening 'Calendar/Month/Weekdays.php'
     for inclusion (include_path='.:') in /Users/x/Sites/p/testing pages/Pear_Date.php
     on line 8
  Fatal error: Class 'Calendar_Month_Weekdays' not found
      in /Users/x/Sites/p/testing pages/Pear_Date.php on line 10*
  </code></pre>
  
  <p>I thought I'd fixed this before though. The install log for PEAR stated:</p>
  
  <pre><code>*Current include path : .:
  Configured directory : /Users/x/PEAR
  Currently used php.ini (guess) : 
  Press Enter to continue: 
  The 'pear' command is now at your service at /Users/x/bin/pear
  ** The 'pear' command is not currently in your PATH, so you need to
  ** use '/Users/x/bin/pear' until you have added
  ** '/Users/x/bin' to your PATH environment variable.*
  </code></pre>
  
  <p>I found an article which I thought resolved my problem - <a href="https://stackoverflow.com/questions/628838/...-x-10-5-leopard">How to set up PEAR on Mac OS X 10.5 Leopard</a></p>
  
  <p>So I edited the include_path line in my php.ini file so it reads <code>include_path = ".:/php/includes:/Users/x/bin/pear"</code>
  I also updated my <code>.bash_profile</code> document so it stated <code>export PATH=/Users/x/bin:$PATH</code> like the article said</p>
  
  <p>Hope that gives you enough information to assist.</p>