[thelist] php pear4 path

Rich Gray richardgray at onetel.co.uk
Mon Nov 4 08:32:01 CST 2002


--
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

if I put this path in i get this error
c:\program files\apache group\apache\htdocs\aaa\lib\

Parse error: parse error, unexpected T_STRING, expecting ')' in c:\program
files\apache group\apache\htdocs\aaa\path_cnfg.php on line 43

Fatal error: Call to undefined function: path_cnfg() in c:\program
files\apache
group\apache\htdocs\aaa\index.php on line 17


--
"The information contained in or attached to this email is intended only for
the use of the individual or entity to which it is addressed. If you are not
the intended recipient, or a person responsible for delivering it to the
intended recipient, you are not authorised to and must not disclose, copy,
distribute, or retain this message or any part of it. It may contain
information which is confidential and/or covered by legal professional or
other privilege (or other rules or laws with similar effect in jurisdictions
outside England and Wales).

The views expressed in this email are not necessarily the views of Centrica
plc, or Centrica Telecommunications Limited, and their directors, officers
or employees make no representation or accept any liability for its accuracy
or completeness unless expressly stated to the contrary."



More information about the thelist mailing list