[dev] Re: [cvs] commit: luxor/config sources.php.dist
luxor/lib Luxor.php luxor source.php
Jan Schneider
jan at horde.org
Thu Feb 6 10:43:31 PST 2003
Zitat von Mike Cochrane <mike at graftonhall.co.nz>:
> default. Is
> there a function to retreive the pear path?
No, but you can search the include_path directories for PEAR.php.
foreach (preg_split('/:|;/', ini_get('include_path')) as $dir) {
if (file_exists($dir . 'PEAR.php')) {
return $dir;
}
}
(Untested)
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the dev
mailing list