|
Posted by IchBin on 08/03/06 19:16
I am new to PHP and I am running on Windoze XP SP 2. Just noticed that
the PEAR installed dir structure I have (to DB subdir) is :
C:\php5.2\PEAR\pear\DB
My registry vars are:
"PHP_PEAR_SYSCONF_DIR"="C:\\php5.2\\PEAR"
"PHP_PEAR_INSTALL_DIR"="C:\\php5.2\\PEAR\\pear"
"PHP_PEAR_DOC_DIR"="C:\\php5.2\\PEAR\\pear\\docs"
"PHP_PEAR_BIN_DIR"="C:\\php5.2\\PEAR"
"PHP_PEAR_DATA_DIR"="C:\\php5.2\\PEAR\\pear\\data"
"PHP_PEAR_PHP_BIN"="c:\\php5.2\\php.exe"
"PHP_PEAR_TEST_DIR"="C:\\php5.2\\PEAR\\pear\\tests"
Is this correct? Having 'PEAR\pear' does not look right. I guess I
should have kept PHP's root dir name as 'PHP' but had more than one
version when I was installing PHP..
When using pears DB the mysql.php returns a reference error for
require_once 'DB/common.php';
"Failed opening required('DB/common.php'(include_path='.;C:\php5\pear')
In my calling program I use require 'C:/php5.2/PEAR/pear/DB.php';
I have it all out of sync. What should be the pears dir layout so I do
not have these reference errors. I guess the reference should be:
'DB/common.php'
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Navigation:
[Reply to this message]
|