Problems with PEAR DB

Status
Not open for further replies.

npeder

New Member
Messages
19
Reaction score
0
Points
0
Recently my site stopped working whenever a PEAR DB script is involved in the code. It was working fine up until a few days ago, but now I am given an error message saying that DB.php cannot be found in the directory. When I change the directory in my code, I am able to get past the require_once statement, but the page stops loading when calling for a connection to mysql. Below please find the involved code:

<?php
require_once("DB.php");

$db =& DB::Connect( 'mysqli://user:password@localhost/table_name', array() );
if (PEAR::isError($db)) { die($db->getMessage()); }

...

My cpanel user name is npeder and I am on Cossack server. My website is www.peder.biz. The part which does not load is "Rating and Comments". I first noticed the problem yesterday. I have not changed anything in the page code recently, so I am suspecting that the problem does not lie in my code but in my account setup.
Hope you can help
Peder
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
I believe that I've installed the PEAR DB module. Can you check if you're still having the problem?
 

npeder

New Member
Messages
19
Reaction score
0
Points
0
I have just checked my web site again, but unfortunately the problem persists. PEAR DB was installed some time ago and everything worked sweet for a while. Then suddenly I realize that part of my page is not loading. In the time frame between working web page and non-working web page, the only changes I have made is to the css-file.
When I now test the code by adding an echo statement (php) somewhere in the script to see how far the page loads, I only get past the initial include statement. The script does not get past the call for a mysql connection. I have made no changes to this part of the script, so I am clueless as to what can cause the sudden connection problem. I hope you can help ...
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Pear will be fixed within a little while. I'll be re-compiling PHP and fixing the current problems with it.
 
Status
Not open for further replies.
Top