By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,813 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,813 IT Pros & Developers. It's quick & easy.

Pear directory structure...

P: n/a

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\\do cs"
"PHP_PEAR_BIN_DIR"="C:\\php5.2\\PEAR"
"PHP_PEAR_DATA_DIR"="C:\\php5.2\\PEAR\\pear\\d ata"
"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-)
Aug 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
IchBin wrote:
>
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\\do cs"
"PHP_PEAR_BIN_DIR"="C:\\php5.2\\PEAR"
"PHP_PEAR_DATA_DIR"="C:\\php5.2\\PEAR\\pear\\d ata"
"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'
Forgot to mention that in my php.ini I have:

;***** Added by go-pear
include_path=".;C:\php5.2\PEAR\pear"

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-)
Aug 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.