Adding Zend to php include_path

Discussion for various published PHP frameworks, including Zend Framework, CodeIgniter, Kohana, CakePHP, Yii, Symfony, and others.

Moderator: General Moderators

Post Reply
jdinz
Forum Newbie
Posts: 1
Joined: Mon Nov 22, 2010 12:34 am

Adding Zend to php include_path

Post by jdinz »

First post ^^

Could someone straighten me out here, I appear to have an incorrect understanding in how the include_path can be used.

I have added a library/Zend/ folder into my shared path on my wamp:

include_path='.;/usr/local/PHP/includes;

/usr/local/PHP/includes/Zend/...

I then attempt to include a component:

e.g

Code: Select all

include('Zend/Loader.php');
This results in error:
Warning: include() [function.include]: Failed opening 'Zend/Loader.php' for inclusion (include_path='.;/usr/local/PHP/includes;/usr/local/PHP/pear;/home/admin/www/plugins/pear/PEAR') in...
User avatar
Zyxist
Forum Contributor
Posts: 104
Joined: Sun Jan 14, 2007 10:44 am
Location: Cracow, Poland

Re: Adding Zend to php include_path

Post by Zyxist »

In Linux, the paths should be separated with a colon, not semicolon.
Post Reply