Trouble setting up php Zend include path

Posted by behrk2 on Stack Overflow See other posts from Stack Overflow or by behrk2
Published on 2010-04-09T19:27:59Z Indexed on 2010/04/09 19:33 UTC
Read the original article Hit count: 354

Filed under:
|
|
|
|

Hello,

I am trying to set up a PHP path to my Zend Framework. I am very confused on how to do this. My Zend Framework is located at the following location on my server:

amazon/ZendFramework-1.10.3-minimal

I am going to be creating a couple of php files in the amazon/ directory that will require the Zend Framework. My include path is:

include("ZendFramework-1.10.3-minimal/library/Zend/Service/Amazon.php");

This works, however inside of Amazon.php is the line

require_once 'Zend/Rest/Client.php';

...and then Client.php has more dependencies set up like that, and so on.

How can I set up my include path so that Amazon.php and Client.php (and so on) can correctly reference the location of the Zend Framework?

Thanks

© Stack Overflow or respective owner

Related posts about zend

Related posts about php