473,387 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 2198
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.