If I run the PHP page (which tests the connection) on the webserver shell command line with %php dbcheck.php it returns the HTML which contains a couple of rows from the DB - fine.
But when I try to run the page in a web-browser I get nothing. It processes the include_once statement, but as soon as it tries to access the DB it fails.
Curiously, if I check the version of php on the webserver by running %php -v, it says 4.2.2, but when I run the PHP test page in a browser, it says 4.1.2. So is it possible that Apache is running a different version of PHP and that this is causing the problems?
I can't really see why it is working on the webserver command line but not in the browser.....
Many thanks for your help