PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
PEAR setup and configuration.

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR
View previous topic :: View next topic  
Author Message
daytonatkf



Joined: 16 Jun 2011
Posts: 1

PostPosted: Fri Jun 17, 2011 3:30 am    Post subject: PEAR setup and configuration. Reply with quote

PEAR in my localpc was working fine, when i implement into live server, the hosting guy told me that the PEAR already installed.

But now where should i start the configuration???

I already put the DB.php, PEAR.php and DB folder in the live server in directory named '/php/', in the live server i can't get this '/usr/local/bin/pear'. In the '/php/' directory already got PEAR5.php.

When i try to test the connection, it show error 'DB not found'

When i try php mysql connection, it was ok.

For PEAR testing i use this

require_once ("../php/DB.php");

$DB =& DB::connect('mysql://username:[email protected]/dbname');
if (DB::isError($DB))
{
echo 'Cannot connect to database: ' . $DB->getMessage();
}
else
{
$Query = 'SELECT * FROM product';
$Result = $DB->query($Query);
$NumResults = $Result->numRows();
echo "<b>$NumResults Employees</b>";

}

After some debugging and changes of directory it didn't show any error, but it was show blank , no result, the table got records in it.

The DB folder which include those mysql.php and etc already been insert in the folder /php/.

Anyone can help me with this? The live server was Centos.

thanks a lot
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement