471,073 Members | 1,171 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

Pear directory structure...


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
1 2082
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.

Similar topics

1 post views Thread by Ruby Tuesday | last post: by
reply views Thread by Jan Pieter Kunst | last post: by
3 posts views Thread by Sandro Dentella | last post: by
1 post views Thread by DJ Majestik | last post: by
1 post views Thread by Greg | last post: by
1 post views Thread by CSTechie | last post: by
4 posts views Thread by awebguynow | last post: by
5 posts views Thread by john | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.