[thelist] php pear4 path

Andrew Maynes andrew at humanbehaviour.co.uk
Tue Nov 5 10:45:01 CST 2002


cheers Gary I will give it a go but still busy trying this querying problem I
have :(  so working with the scripts on vitual server.  Which is very time
consuming.

I will try this in a minute :)

Andrew

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Gary Bland
Sent: Tuesday, November 05, 2002 01:51
To: thelist at lists.evolt.org
Subject: Re: [thelist] php pear4 path


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

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.410 / Virus Database: 231 - Release Date: 31/10/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.410 / Virus Database: 231 - Release Date: 31/10/2002




More information about the thelist mailing list