Re: class/method to get data_dir
| From: | Christian Weiske | Date: | Thu, 05 Jul 2007 12:41:32 +0000 |
| Subject: | Re: class/method to get data_dir | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47204@lists.php.net to get a copy of this message | ||
Michel,
> I have a package that needs to access stuff in the data_dir
> directory, e.g. <data_dir>/<package-name>/<stuff>. What is the
> class/method to get data_dir?
require_once "PEAR/Config.php";
$configfile = PEAR_Config::singleton()->get('data_dir')
--
Mit freundlichen Grüßen/Regards,
Christian Weiske