Re: newbie: pear, include_paths and require_once.
| From: | Martin Jansen | Date: | Thu, 13 Nov 2003 13:20:12 +0000 |
| Subject: | Re: newbie: pear, include_paths and require_once. | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8887@lists.php.net to get a copy of this message | ||
On Thu Nov 13, 2003 at 12:0136PM +0000, Jon Bennett wrote:
> I'm trying to go through a book I bought (php/mysql programming -
> problem design solution Wrox press (now apress)) and it seems to want
> me to include (using require_once) different files from the PEAR libs.
> I'm running php4.3 so these libs should be installed as standard ?????
PEAR should be part of PHP, yes.
> If I put a phpinfo page on my local server I can find no references to
> PEAR anywhere, but the book requires a .htaccess file to setup include
> paths to various classes etc and the location of PEAR on the server. do
> I still need to put an explitict include_path to the PEAR libs or is
> this line of code now redundant ???
You need to set the include_path. Ini_set() is the function you are
searching for.
--
- Martin Martin Jansen
http://martinjansen.com/