No one who can help me on this? I'm really stuck.
Sql-ledger is working so perl can access the DB, so the Postgres is installed properly. I've loaded the postgres module for PHP correctly, as shown by phpinfo() i'm using the same username and pass as for sql-ledger so that should be no problem. All is on the same SME7 server, both perl and php files are in the same dir. As a test i've got the following simple script:
<?php
$connection = pg_connect("dbname='<my_db>' port='5432' user='<username>' password='<user_pass>' host='localhost'");
if (!$connection) {
print("Connection Failed.");
phpinfo(INFO_MODULES);
exit;
}
echo("<strong>SUCCESS !!</strong>");
?>
Any help on this is appreciated,
jester.