Latest Videos
Ruby Meet Up 8/13/09: Ruby Files on Google App Engine
Ruby Meet Up 8/13/09: Ruby Files on Google App Engine

Presented at the Ruby Meet Up by John Woodell and…

Videos | Oct 24, 2011
Ruby Meet Up 8/13/09: Interfaces and the Future of Ruby
Ruby Meet Up 8/13/09: Interfaces and the Future of Ruby

Presented at the Ruby Meet Up by Yehuda Katz. Yehuda…

Videos | Oct 24, 2011
Picasa Web Albums Data API
Picasa Web Albums Data API

Sven Mawson gives an overview of the Picasa Web Albums…

API | Mar 18, 2011
Google App Engine - Early Look at Java Language Support
Google App Engine - Early Look at Java Language Support

This video introduces the latest features of App Engine, including…

Videos | Mar 17, 2011
Show More
Latest Freebies
PHP Contact Form Script

Here is a nice contact form for your website. This…

Free Forms | Dec 09, 2010
LightForm ::: Free Ajax/PHP Contact Form
LightForm ::: Free Ajax/PHP Contact Form

LightForm is a free Ajax/PHP contact form. It combines FormCheck2…

Free Forms | Dec 09, 2010
LightForm ported to WordPress v2.5.1
LightForm ported to WordPress v2.5.1

LightForm is now a WordPress plugin (only works with latest…

Free Forms | Dec 09, 2010
Sliding Login Panel with Mootools 1.2
Sliding Login Panel with Mootools 1.2

Some of you were wondering what script I used to…

Free Forms | Dec 09, 2010
Show More
You are here > Home > PHP
Introduction to PEAR
Author: Cyberical Views: 336 Posted On: Apr 27, 2009

PEAR contains two types of pre-written code: PECL code, and PHP code. PECL code, as mentioned already, forms full extensions written in C that interact with external libraries. Extensions reside in PECL when they are considered useful, but not popular or much used. Most of PEAR, however, is PHP code that performs all varieties of tasks for you, with the primary advantage being that you can use PEAR code on any PHP server without needing to enable any extensions or re-compile PHP.

The most famous package in PEAR is called PEAR::DB, and provides an object-oriented, database-independent framework for reading and writing to your database. PEAR::DB is covered in depth later on.

PHP comes with "go-pear", an easy way to configure PEAR for use on your computer. To use it, simply run go-pear from the command line and follow the on-screen instructions. Windows users will need to change directory to where PHP is, e.g. c:php.

Running go-pear will set up PEAR on your computer.

Once you have PEAR installed on your system, you will see the "pear" command – this allows you to search for and download new PEAR modules for your PHP installation.