[thelist] php pear4 path
Andrew Maynes
andrew at humanbehaviour.co.uk
Mon Nov 4 08:42:01 CST 2002
yep fun!
It is the define way forward, this is what I did before... but was a very very
long time ago... about 4 weeks!
Thank you
Andrew
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Rich Gray
Sent: Monday, November 04, 2002 14:30
To: thelist at lists.evolt.org
Subject: RE: [thelist] php pear4 path
--
Adding to what Tony has pointed out ... it seems that your php lib directory
is inside the document root after all and not in c:\localhost, if so can you
not change your require_once to...
<?
// index.php
require_once('lib/common_func.php');
?>
IIRC your include path includes the current directory so from the 'aaa'
level it will work - from other levels it won't...
Or you can do something like this...
<?
define('LIB',$_SERVER['DOCUMENT_ROOT'].'/aaa/lib');
require_once(LIB.'/common_func.php');
?>
include paths are fun aren't they...
HTH
Rich
---
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