For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > October 2006 > Re: [PEAR] Re: Problem using Config.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Re: Problem using Config.php
Adam Ashley

2006-10-30, 7:07 pm

On Tue, 24 Oct 2006 18:59:12 -0500, Gregory Beaver =20
<greg@chiaraquartet.net> wrote:

> Matthias Otto wrote:
>
> sudo pear install Config
>
> Then you will have the Config file in /usr/share/php/PEAR/Config.php
>


At a guess Matthias I would say you got the two meanings of PEAR =20
. /usr/share/php/PEAR/Config.php contains PEAR_Config which is =20
part of the PEAR Installer package.

In your setup (which looks like the default one) /usr/share/php =20
contains the installed PEAR Repositiory.

To make use of the Config package available through PEAR use the =20
command Greg mentioned:

sudo pear install Config

Once done update your php.ini so the include path contains =20
/usr/share/php not /usr/share/php/PEAR.

Then you will have the Config package available at =20
/usr/share/php/Config.php and includable via

require_once 'Config.php';

Adam Ashley
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com