472,982 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,982 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 2168
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ruby Tuesday | last post by:
Hi, perhaps some php guru can shed some lite to my limited knowledge. My PHP installation directory is in: c:\apps\php\php4 cli/ dlls/ extensions/ mibs/ openssl/
0
by: Jan Pieter Kunst | last post by:
Dear group, I'm trying to change PEAR's default cache directory (on Mac OS X) from /tmp/pear/cache to /var/tmp/pear/cache, but I can't do it. I'm using the Marc Liyanage's php distribution, and...
3
by: Sandro Dentella | last post by:
I need to use a class to handle mbox files that uses PEAR. Since I'm using Debian (both woody and, I simply apt-get(ed) php4-pear but I can't use it becouse I get the error: Warning: dl():...
1
by: DJ Majestik | last post by:
OK, I am new to the whole PEAR/Smarty templating thing. I am trying to setup my directory structure correctly. If someone could weigh in and see if I have this setup "right", I would appreciate it....
1
by: Greg | last post by:
I am trying to set up a local verion of Pear in my shared account, which my host said I can do. I have SSH access, and I followed all the instructions in the Pear Manual for setting up a local copy...
1
by: CSTechie | last post by:
I've been battling to install PEAR on Windows XP now for too long. I am not sure what I need to do. When I run go-pear.php from the command line, I get the error message as shown at the end. I...
4
by: awebguynow | last post by:
Re: only got "pear.old_bat" I had a previous post ".. Upgrade Methods ..." and so far I've gotten around most thorny issues, including patching php5.1.4 with php5apache2_2.dll so I can run it...
2
by: Paul | last post by:
I am moving an existing app written years ago to a new server. It uses Sigma Template 1.3 and Quickform 1.1.1 and PEAR.php,v 1.1.1.1 2004/02/16 The directory structure is like this: /site...
5
by: john | last post by:
All: Very experienced developer, newbie to PHP. My situation: I have installed on my WIndows XP machine the following: * PHP 5.2.1 * MySQL 5.0 * Apache 2.2 All of these are installed...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.