Page 1 of 1

Adding Zend to php include_path

Posted: Mon Nov 22, 2010 1:05 am
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...

Re: Adding Zend to php include_path

Posted: Thu Nov 25, 2010 12:54 am
by Zyxist
In Linux, the paths should be separated with a colon, not semicolon.