problem about installing pear
Posted: Thu Jan 11, 2007 9:38 pm
i installed the pear but wasnt successfull
i got the following errors
1>go to the go-pear.dat and run
2>chose for local and conitnued
3>everything went ok
Lots of files appeared in c:\wamp\php\PEAR including go-pear.phar
i went to the root folder and copied the downloaded pear DB package where there was DB.php and many more..but there wasnt PEAR.php
and when i executed this query
and i got the above errors. I dont know where i did st wrong.
i am currently running wamp . Can anybody give me a exact installation of pear DB in wamp.
Thanks in advance to all of DevNetworkians !!
i got the following errors
i did the followingWarning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\Rajendra\pear\DB.php on line 30
Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.;C:\php5\pear') in C:\wamp\www\Rajendra\pear\DB.php on line 30
1>go to the go-pear.dat and run
2>chose for local and conitnued
3>everything went ok
Lots of files appeared in c:\wamp\php\PEAR including go-pear.phar
i went to the root folder and copied the downloaded pear DB package where there was DB.php and many more..but there wasnt PEAR.php
and when i executed this query
Code: Select all
<?
$dbhost = 'localhost';
$dbtype = 'mysql';
$dbuser = 'root';
$dbpass = '';
$dbname = 'test';
require_once( 'DB.php' );
$db = DB::connect( "$dbtype://$dbuser:$dbpass@$dbhost/$dbname" );
// no need to select DB
$sql = 'SELECT * FROM category';
$demoResult = $db->query($sql);
while ($demoRow = $demoResult->fetchRow()) {
echo $demoRow[2] . '<br>';
}
$db->disconnect();
?>i am currently running wamp . Can anybody give me a exact installation of pear DB in wamp.
Thanks in advance to all of DevNetworkians !!