Re: How can I retrieve PEAR globals like data_dir ?

From: Date: Wed, 09 Apr 2003 22:29:46 +0000
Subject: Re: How can I retrieve PEAR globals like data_dir ?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15081@lists.php.net to get a copy of this message
On Fri, 2003-04-04 at 09:58, Greg wrote: > Hi All, > > I made a package in which I stored a text data file (sql data in fact...). > I want to access this file but I can't retrieve the data_dir global to know > where my package is on the server. > > Does anyone knows how to get this info ? require_once 'PEAR/Config.php'; $config = &PEAR_Config::singleton(); $data_dir = $config->get('data_dir'); - Stig

« previous php.pear.dev (#15081) next »