Forum Moderators: coopster
For example, the following works:
include('/var/www/vhosts/myhostname/httpdocs/application/library/Zend/Loader.php');
But this doesn't:
set_include_path(get_include_path() . PATH_SEPARATOR . '/var/www/vhosts/myhostname/httpdocs/application/library');
include 'Zend/Loader.php';
I get this message:
Unable to access /Zend/Loader.php in /var/www/vhosts/myhostname/httpdocs/index.php
I'm sure it's something small and stupid I'm missing, but I'd still like to be able to use relative path names at the moment. Any thoughts on what's wrong?
This behavior is strange -- without APC, PHP doesn't generate 2 errors when it has to look in three different places to find the file (PHP tries /Zend/Loader.php ./Zend/Loader.php and then uses the include paths).
But with APC it does. I can suppress errors if I choose not to display errors, but for development I'd still like to see them. Any idea why PHP displays these errors when APC is loaded?