Do you mean that your application is not publicly available? Anyway, usually I just define a constant ROOTin my front controller (usually index.php) as follows:
define('ROOT', str_replace('\\', '/', __DIR__));
Or in older versions of PHP, where it is __DIR__not available:
define('ROOT', str_replace('\\', '/', dirname(__FILE__)));
, - :
include(ROOT . '/application/libraries/Email.php');
:
define('LIBRARY_PATH', ROOT . '/application/libraries');
include(LIBRARY_PATH . '/Email.php');
. =)