Skip site navigation (1) Skip section navigation (2)

Re: can somebody show me a MDB2 dsn with port number?

From: Jeff MacDonald <jam(at)zoidtechnologies(dot)com>
To: kmh496 <kmh496(at)kornet(dot)net>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: can somebody show me a MDB2 dsn with port number?
Date: 2006-05-20 18:09:36
Message-ID: 1148148576.12905.13.camel@dionysus.zoidtechnologies.com (view raw or flat)
Thread:
Lists: pgsql-php
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(at)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/


In response to

pgsql-php by date

Next:From: Jeff MacDonaldDate: 2006-05-20 18:14:21
Subject: Re: can somebody show me a MDB2 dsn with port number?
Previous:From: kmh496Date: 2006-05-20 17:49:29
Subject: can somebody show me a MDB2 dsn with port number?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group