[thelist] php pear4 path

Andrew Maynes andrew at humanbehaviour.co.uk
Mon Nov 4 06:52:02 CST 2002


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

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 12:20
To: thelist at lists.evolt.org
Subject: RE: [thelist] php pear4 path


--

OK - what does this display...

<?
$need = path_cnfg('pathToLibDir').'func_common.php';

echo 'File needed is -> '.$need.' <- and it is '.
     (file_exists($need) ? 'there' : 'missing');
?>

The pathtolib is outside your document root - this is by design?

Rich

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: 04 November 2002 11:39
To: thelist at lists.evolt.org
Subject: RE: [thelist] php pear4 path


this is what I have Rich

require_once 'path_cnfg.php';

in the path_cnfg.php file I have

 'pathToLibDir' => "c:/localhost/aaa/lib/",

error meassage

Fatal error: Failed opening required 'c:/localhost/aaa/lib/func_common.php'
(include_path='.;c:\php4\pear') in c:\program files\apache
group\apache\htdocs\aaa\index.php on line 17

line 17 index.php is

require_once(path_cnfg('pathToLibDir').'func_common.php');

Andrew


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

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

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