473,324 Members | 2,370 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,324 software developers and data experts.

Where can I find PEAR DB??

I have a book which had code that includes the line:

require 'DB.php';

I know that this is from the PEAR code modules, but when I downloaded
them and unpacked the directory, they "DB.php" module does not exist.
Is this out of date or do I need to go somewhere else to get this
extra module?

Thanks

Sep 7 '05 #1
2 3026
David wrote:
I have a book which had code that includes the line:

require 'DB.php';

I know that this is from the PEAR code modules, but when I downloaded
them and unpacked the directory, they "DB.php" module does not exist.
Is this out of date or do I need to go somewhere else to get this
extra module?


Download from here:
http://pear.php.net/package/DB

Online documentation:
http://pear.php.net/manual/en/package.database.php

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Sep 7 '05 #2
On Wed, 07 Sep 2005 17:48:52 -0500, David wrote:
I have a book which had code that includes the line:

require 'DB.php';

I know that this is from the PEAR code modules, but when I downloaded
them and unpacked the directory, they "DB.php" module does not exist.
Is this out of date or do I need to go somewhere else to get this
extra module?

Thanks]

There is a command named "pear", which is package installer, similar to
the "cpan" command from another language.
Execute "pear install DB" as a user who can write to the PEAR directories
and you should be ok. Here is the help for the "pear" command:

$ pear help Commands:
build Build an Extension From C Source
bundle Unpacks a Pecl Package
clear-cache Clear XML-RPC Cache config-get Show One Setting
config-help Show Information About Setting
config-set Change Setting config-show Show All Settings
cvsdiff Run a "cvs diff" for all files in a package cvstag Set CVS Release Tag download Download Package download-all Downloads each available package from master_server
info Display information about a package
install Install Package list List Installed Packages
list-all List All Packages
list-upgrades List Available Upgrades
login Connects and authenticates to remote server
logout Logs out from the remote server
makerpm Builds an RPM spec file from a PEAR package
package Build Package
package-dependencies Show package dependencies
package-validate Validate Package Consistency
remote-info Information About Remote Packages
remote-list List Remote Packages
run-tests Run Regression Tests
search Search remote package database
shell-test Shell Script Test
sign Sign a package distribution file
uninstall Un-install Package
upgrade Upgrade Package
upgrade-all Upgrade All Packages
Usage: pear [options] command [command-options] <parameters>
Type "pear help options" to list all options.
Type "pear help shortcuts" to list all command shortcuts.
Type "pear help <command>" to get the help for the specified command.
$
--
http://www.mgogala.com

Sep 8 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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....
2
by: RC | last post by:
I just downloaded, compiled and installed PHP 5 in my Redhat Linux enterprise 3 update 4. I try to connected to PostgreSQL database I got error on line <?php require_once('DB.php'); ....
4
by: ProgDario | last post by:
HI, I downloaded and installed the I18N pear package, but the link on the doc referring to the DB is broken. Where can I find the I18N DB? Without it I can't make it work! Thanks in...
2
by: Alan Prescott | last post by:
I'm running SuSE Linux 9.3, fully up to date running # pear install db responds with ... downloading DB-1.7.6.tgz ... Starting to download DB-1.7.6.tgz (124,807 bytes)...
0
by: bwhitehd | last post by:
I'm having a problem installing php. The compile seems to go fine, but when it gets to the install step I get the following errors. Does anyone have an idea of what might be the problem? We...
1
by: IchBin | last post by:
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:...
2
by: Bennett Haselton | last post by:
How do I find the mapping between a PHP package name like HTTP_Request, and the "yum" command to install it on CentOS 4.4? For example when I needed to use LWP::UserAgent to use in Perl, the...
1
by: vps | last post by:
I have Apache 2.2 server running on Windows XP SP2 with PHP 5.2.5. I have run go-pear.bat in PHP directory (system-wide, all defaults). Running “pear” command lists additional commands. I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.