From: Marko Kreen <marko@l-t.ee>
To: Adam Lang <aalang@rutgersinsurance.com>
Cc: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: Connecting remotely.
Date: Wed, 1 Nov 2000 16:50:56 +0200
Message-ID: <20001101165056.A16297@l-t.ee> (raw)
In-Reply-To: <00e801c04410$2fe0c8c0$330a0a0a@6014cwpza006>
References: <00e801c04410$2fe0c8c0$330a0a0a@6014cwpza006>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: marko@l-t.ee, aalang@rutgersinsurance.com
Subject: Re: Connecting remotely.
In-Reply-To: <20001101165056.A16297@l-t.ee>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox