[thelist] php pear4 path

Gary Bland Gary at star-chaser.com
Mon Nov 4 19:51:01 CST 2002


Andrew Maynes wrote:
> I give in = :(
>
> I have now got this in the index.php
>
> define('LIB',$_SERVER['DOCUMENT_ROOT'].'/aaa/lib');
> require_once(LIB.'/common_func.php');

to set the path to pear use the ini_set like below. then use your
require for the part of pear you want to use. For example to use DB.

ini_set('include_path', c:/Program Files/php/pear/');
require_once 'DB.php';


HTH
Gary




Gary Bland
StarChaser Web Architecture
http://star-chaser.com
Building Tomorrow's World Today




More information about the thelist mailing list