pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff MacDonald <jam@zoidtechnologies.com>
To: kmh496 <kmh496@kornet.net>
Cc: pgsql-php@postgresql.org
Subject: Re: can somebody show me a MDB2 dsn with port number?
Date: Sat, 20 May 2006 14:09:36 -0400
Message-ID: <1148148576.12905.13.camel@dionysus.zoidtechnologies.com> (raw)
In-Reply-To: <1148147370.7568.30.camel@var.sirfsup.com>
References: <1148147370.7568.30.camel@var.sirfsup.com>

greetings,

your question would be more appropriate to one of the PEAR lists, but I
will answer it anyway.

On Sun, 2006-05-21 at 02:49 +0900, kmh496 wrote:
> hello pgsql-php,
> 
> i looked for a sample of MDB2 dsn array with port number, couldn't find
> one.
> my dsn without it is:
> $dsn_postgresql=array(
>     'phptype' => "pgsql",
>     'username' => $pg_username,
>     'password' => $pg_password,
>     'hostspec' => "localhost",
>     'database' => $pg_database
> );
> $options = array(
>     'debug'       => 9,
>     'portability' => DB_PORTABILITY_ALL,
> );
> 
> the MDB2 docs have just
> 
> 
> Most variations are allowed: 
> 
> 
> 1     phptype://username:password@protocol+hostspec:110//usr/db_file.db?mode=0644
[..snipped..]
> can somebody cut and paste me one please?
> thanks everybody.
> joseph.

http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php

specifically, look at the line that describes the "hostspec" ("Host
Specification").

regards,
J
-- 
Jeff MacDonald
Zoid Technologies, http://zoidtechnologies.com/




view thread (3+ messages)  latest in thread

Message-ID: <1148148576.12905.13.camel@dionysus.zoidtechnologies.com>
Permalink:  ../1148148576.12905.13.camel@dionysus.zoidtechnologies.com/
Also on:    postgresql.org/message-id/1148148576.12905.13.camel@dionysus.zoidtechnologies.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: jam@zoidtechnologies.com, kmh496@kornet.net
  Subject: Re: can somebody show me a MDB2 dsn with port number?
  In-Reply-To: <1148148576.12905.13.camel@dionysus.zoidtechnologies.com>
  References: <1148147370.7568.30.camel@var.sirfsup.com> <1148148576.12905.13.camel@dionysus.zoidtechnologies.com>

* 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