first make sure the postgres server is tcp/ip enabled, second make sure php is postgres enabled, then you can use this php code:
Code:
<?php
$connection = pg_connect("host=192.19.0.101 port=5432 dbname=<database name> user=<user> password=<password>");
?>
all arguments are optional, and have default values wich can be set. check the
php documentation on postgresql.
greetz,
.-=~ iluvatar ~=-.