2

I have downloaded the Zend Framework and put it just above the server root (Where /tmp is and such) and I'm having trouble getting it recognized by a single PHP file. I am using a shared host and this is how I am including the directory:

set_include_path('/home/content/xx/xxxxxxx/zend/library');
require_once('Zend/loader.php');
Zend_Loader::loadClass('Zend_Gdata');
nkcmr
  • 10,690
  • 25
  • 63
  • 84
  • 1
    I suggest to start with http://zendframework.com/manual/en/manual.html – Gordon Jul 27 '11 at 23:06
  • I'm guessing the actual problem is `Warning: require_once(Zend/loader.php) [function.require-once]: failed to open stream` – Phil Jul 27 '11 at 23:12

1 Answers1

2

I think your issue is a case sensitivity one. The Zend_Loader class' filename is Loader.php (capital "L").

Try

set_include_path('/home/content/xx/xxxxxxx/zend/library');
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Phil
  • 157,677
  • 23
  • 242
  • 245