473,387 Members | 1,578 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.

Getting started with PEAR

I have been coding for almost 40 years, but only two months with php. I
found www.php.net and it has a lot. I downloaded ZipCodeRange and it called
for stuff, including DB.php. I was directed to look at pear.php.net. I did
that, and started reading the manual.

What I cannot seem to find is how to SIMPLY use this stuff.
a - I don't know where to find db.php
b - I haven't been able to find an explanation of the syntax (e.g.
DB::connect)
c - How to actually USE the class.

Can someone help me out with some simple instructions to get started? Once
I am moving I can take it from there.

Shelly
Jul 17 '05 #1
3 1436
Shelly wrote:
What I cannot seem to find is how to SIMPLY use this stuff.
a - I don't know where to find db.php
When you install PHP PEAR is also installed. If you want to add a
package then just in a commandline enter: pear install DB
that should take care of it
b - I haven't been able to find an explanation of the syntax (e.g.
DB::connect)
That is the way PHP call a method in a class directly without creating
an object first.
c - How to actually USE the class.
on the PEAR website there are documentation for most of the classes, som
of the documentation is perhaps not the best written stuff, but I have
found the most documentation useful
Can someone help me out with some simple instructions to get started? Once
I am moving I can take it from there.
A search on google turned up several hits on: pear tutorial
Shelly


Peter
Jul 17 '05 #2
In my opinion, PEAR is more pain than it's worth.

Jul 17 '05 #3
On 9 Jul 2005 20:37:01 -0700, "Chung Leong"
<ch***********@hotmail.com> wrote:
In my opinion, PEAR is more pain than it's worth.


Its just as well you are not forced to use it then, isn't it? ;-)

Aug 14 '05 #4

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():...
3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
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:...
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...
1
by: IchBin | last post by:
I remember having problems with pear when I first installed it but got it running some time ago. This is on a windoze XP SP OS. I did not think it was correct because it pointed to...
2
by: mpar612 | last post by:
Hello, I'm new to Linux, setting up and running webservers. I purchased an unmanaged server that came with a lamp configuration and Plesk installed. I am trying to get PEAR functioning. I put a...
9
by: mekalai82 | last post by:
i have information.php file that file contain following coding <?php echo phpinfo(); ?> while i calling the URL ("http://localhost/information.php"). i am getting the coding <?php echo...
3
by: Adrian | last post by:
In the following code example I am trying to create a generic interface for a bunch of objects. Each concrete type is stored in its own container and the a container of pointer's to base is used so I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.