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://userassword@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
<?php
require_once("DB.php");
$db =& DB::Connect( 'mysqli://userassword@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