Re: Requiring stuff question
| From: | Robert | Date: | Mon, 23 May 2005 16:29:54 +0000 |
| Subject: | Re: Requiring stuff question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215767@lists.php.net to get a copy of this message | ||
On 5/23/05, Marek Kilimajer <lists@kilimajer.net> wrote:
> Robert wrote:
> > I have the following in a config file:
> >
> > // Define and require the Smarty library
> > define('SMARTY_DIR', 'Smarty/');
> > require(SMARTY_DIR . 'Smarty.class.php');
> >
> > // Define the pager stuff
> > define('PAGER_DIR', 'Pager/');
> > require(PAGER_DIR . 'Pager.php');
> > require(PAGER_DIR . 'Pager_Wrapper.php');
> >
> > // Define the DB package
> > define('PEAR_DB', 'DB/');
> > require(PEAR_DB . 'DB.php');
> >
> > The Smarty stuff works no problem. The DB and Pager stuff do not. Since I am
> > new to PHP I may be just misunderstanding how to do it.
>
> PEAR requires that its path is in include_path. Use:
>
> ini_set('include_path', '/where/is/your/PEAR/:' .
> ini_get('include_path'));
>
Ah! Thanks!
Robert