Re: Connecting remotely. - Mailing list pgsql-interfaces

From Marko Kreen
Subject Re: Connecting remotely.
Date
Msg-id 20001101165056.A16297@l-t.ee
Whole thread Raw
In response to Connecting remotely.  ("Adam Lang" <aalang@rutgersinsurance.com>)
List pgsql-interfaces
On Wed, Nov 01, 2000 at 09:29:47AM -0500, Adam Lang wrote:
> This may be a silly question, but how does *nix systems speak to a remote
> database without ODBC, like Windows?

Database's client side libraries take care of that.  But that
means linking your app with some particular database library.
e.g. PHP has php_pgsql, php_sybase...  if you want your
app to be database-agnostic, you can link it with e.g. UnixODBC,
which should do the database-specific work.

> As an example, PHP... I have Apache/PHP on one server, and the database on
> another.  How does it do remote calls?

$db = pg_connect("host=another.net port=5432 ... ");

-- 
marko



pgsql-interfaces by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: using large objects with jdbc
Next
From: "Adam Lang"
Date:
Subject: Re: Connecting remotely.