I am attempting to migrate an internet site from 1 linux (php4) PC to a different 1 linux PC (php5).

The web site consists of Apache+PHP+Smarty+MYSQL.

Now I am getting this error "DB_DataObject Error: Connect unsuccessful, switch on debugging to five understand why "

I've fundamental understanding on PHP, can anybody assist me to the way i can debug the issue? Thanks.

A couple of seconds of Searching gives this :

http://old.nabble.com/DB_DataObject-error-handling-td5824164.html

http://pear.activeventure.com/core/core.pear.pear.seterrorhandling.html

So you could attempt to include

PEAR::setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_WARNING);

...at the outset of the bogus PHP script, to be able to obtain a more precise PHP error.