The Pear is not installed when you install php5. You must install it separately. Go to PHP directory, find go-pear.bat, and setup it.
when it complete, the pear is installed.
If you want to install other modual, such as db. You can install it in CMD with command: pear install db.
To test if db work:
<?php
require_once ”DB.php”;
//connect to database
$dsn = ‘mysql://root:@localhost/test;
$db = & DB::connect($dsn);
if (PEAR::isError($db)) {
die($db->getMessage());
}
?>
other pear command:
http://jobs.chinahr.com/html/2010-04/29/20080710010195000043.htm