Re: Problem using Config.php

From: Date: Tue, 24 Oct 2006 18:18:47 +0000
Subject: Re: Problem using Config.php
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25605@lists.php.net to get a copy of this message
Matthias Otto wrote: > Hallo! > > I have got two problems. > > 1) There is some problem with pear installation: I have installed the > Ubuntu-package. Pear was installed into "/usr/share/php/PEAR/". Now I > want to use Config.php. But I get the message "No such file or > directory". I checked php.ini and included "/usr/share/php/PEAR/" to > include_path. But still the error message remains the same. > > 2) Then I included the full path into the require_once string. Now > file Config.php is recognized. I want to use class Config() as in the > documentation examples given. But now I get the message "Class > 'Config' not found". And I realy can't find the class definition nowhere. > > ??? > > Matthias > Hello Ubuntu package php-pear installs only the basics of PEAR - as the go-pear installer does. You have to install every package, that you want to use, yourself. For example "sudo pear install Config". For more information see "pear help" and the documentation. PEAR is installled to "/usr/share/php", without PEAR. In directory PEAR are only sub-classes of the class PEAR, for example PEAR_Config in PEAR/Config.php. Greetings, Sascha

« previous php.pear.general (#25605) next »