Received: from www.inreko.ee (www.inreko.ee [195.222.18.2]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eA1EhAl59352 for ; Wed, 1 Nov 2000 09:43:11 -0500 (EST) (envelope-from marko@l-t.ee) Received: from grue ([195.222.18.13] helo=grue.l-t.ee) by www.inreko.ee with esmtp (Exim 3.14 #2) id 13qz8b-00006E-00; Wed, 01 Nov 2000 16:45:13 +0200 Received: from marko by grue.l-t.ee with local (Exim 3.16 #1 (Debian)) id 13qzE8-0004GJ-00; Wed, 01 Nov 2000 16:50:56 +0200 Date: Wed, 1 Nov 2000 16:50:56 +0200 From: Marko Kreen To: Adam Lang Cc: pgsql-interfaces Subject: Re: Connecting remotely. Message-ID: <20001101165056.A16297@l-t.ee> References: <00e801c04410$2fe0c8c0$330a0a0a@6014cwpza006> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00e801c04410$2fe0c8c0$330a0a0a@6014cwpza006>; from aalang@rutgersinsurance.com on Wed, Nov 01, 2000 at 09:29:47AM -0500 X-Archive-Number: 200011/6 X-Sequence-Number: 39 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