Re: Connecting remotely.

From: Marko Kreen <marko(at)l-t(dot)ee>
To: Adam Lang <aalang(at)rutgersinsurance(dot)com>
Cc: pgsql-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: Connecting remotely.
Date: 2000-11-01 14:50:56
Message-ID: 20001101165056.A16297@l-t.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Thomas Lockhart 2000-11-01 14:51:10 Re: using large objects with jdbc
Previous Message Adam Lang 2000-11-01 14:29:47 Connecting remotely.