title: Failed to load Zend/Loader.php. Trying to work out why?
body: <p>I have inherited a client site which crashes every 3 or 4 days. It is built using the zend-framework with which I have no knowledge.</p>
  
  <p>The following code:</p>
  
  <pre><code>&lt;?php
      // Make sure classes are in the include path.
     ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . 'lib' . PATH_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'classes');
  
      // Use autoload so include or require statements are not needed.
      require_once 'Zend/Loader.php';
      Zend_Loader::registerAutoload();
  
      // Run the application.
      App_Main::run('production');
  </code></pre>
  
  <p>Is causing the following error:</p>
  
  <pre>
  [Tue Sep 02 12:58:45 2008] [error] [client 78.***.***.32] PHP Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /srv/www/vhosts/example.co.uk/httpdocs/bootstrap.php on line 6 
  [Tue Sep 02 12:58:45 2008] [error] [client 78.***.***.32] PHP Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.:.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vhosts/example.co.uk/httpdocs/bootstrap.php on line 6 
  </pre>
  
  <p>I don't even know where to begin trying to fix this. My level of knowledge of PHP is intermediate but like I said, I have no experience with Zend. Also, contacting the original developer is not an option.</p>
  
  <p>The interesting thing is that even though the code is run every time a page of the site is hit the error is only happening every now and then.</p>
  
  <p>I believe it must be something to do with the include_path but I am not sure.</p>