pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Valentín Orfila <valentinorfila@gmail.com>
To: Matthew Terenzio <matt@jobsforge.com>
Cc: Kitty Yuen <kitty3a@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Problems in connecting to postgreSQL using PHP
Date: Mon, 12 Mar 2007 09:41:22 -0400
Message-ID: <6b8c0db0703120641j4539003ck49f28edb02408ae9@mail.gmail.com> (raw)
In-Reply-To: <6b8c0db0703120637r2b7e010pbc3f2e403f61531e@mail.gmail.com>
References: <b3efba5a0703112125s23b7eac1u60639be8ac06def4@mail.gmail.com>
	<f22361d85ef58b122d12731d3888a589@jobsforge.com>
	<6b8c0db0703120637r2b7e010pbc3f2e403f61531e@mail.gmail.com>

here is the script again

<?  /*---------------*/
    $servidor = "localhost";
     $base = "databasename"; //change it
     $usuario = "postgresuser"; //change it
     $password = "postgresuserpassword"; //change it

     pg_pconnect("host=$servidor dbname=$base user=$usuario
password=$password");

?>

2007/3/12, Valentín Orfila <valentinorfila@gmail.com>:
>
> Hi!!! I'm Venezuelan and I don't know how to speak english very well, so
> excuse me if i make a mistake.
>
> About the connection: Did you do your script by yourself?, or copied a
> functional one?
>
> As Thomas Schindler said, send us any PHP errors or the pg_hba.conf ?
>
> Here is my connection script, it is completly good check it out to see if
> you have anything wrong
>
> <?  /*---------------*/
>     $servidor = "localhost";
>      $base = "databasename"; //change it
>      $usuario = "postgresuser"; //change it
>      $password = "postgresuser"; //change it
>
>      pg_pconnect("host=$servidor dbname=$base user=$usuario
> password=$password");
>
> ?>
>
> That's all what I can do for now
>
> 2007/3/12, Matthew Terenzio <matt@jobsforge.com>:
> >
> > Could you provide any PHP errors or the pg_hba.conf ?
> >
> > On Mar 12, 2007, at 12:25 AM, Kitty Yuen wrote:
> >
> > > Hi,
> > >
> > > I am trying to connect my postgreSQL with PHP in localhost. I have
> > > start up the server with -i flag ( i.e. postmaster -D
> > > /usr/local/pgsql/data -i &) and edit the pg_hba.conf. However, I still
> > > cannot connect with the database. But, when I tried to remote access
> > > the database through SSH and I can connect with it.
> > >
> > > Would you please offer any suggestions or solutions?
> > >
> > > Manythanks,
> > > Kitty3A
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: Don't 'kill -9' the postmaster
> >
>
>
>
> --
>
> ***************************************************************************
> Ministerio de Planificación y Desarrollo de la República Bolivariana de
> Venezuela
> Dirección de Planes de Personal
>
> José Valentín Orfila Briceño
> Programador II
>
> Teléfonos: Celular: (0416) 4131418
>
> E-mail: valentinorfila@gmail.com
>            valentinorfila@hotmail.com
>            josevalentinorfila@yahoo.com
>
> Messenger: valentinorfila@hotmail.com
>
> Skype: valentinorfila
>            valentinorfila@gmail.com
> ***************************************************************************
>




-- 
***************************************************************************
Ministerio de Planificación y Desarrollo de la República Bolivariana de
Venezuela
Dirección de Planes de Personal

José Valentín Orfila Briceño
Programador II

Teléfonos: Celular: (0416) 4131418

E-mail: valentinorfila@gmail.com
           valentinorfila@hotmail.com
           josevalentinorfila@yahoo.com

Messenger: valentinorfila@hotmail.com

Skype: valentinorfila
           valentinorfila@gmail.com
***************************************************************************

view thread (10+ messages)  latest in thread

Message-ID: <6b8c0db0703120641j4539003ck49f28edb02408ae9@mail.gmail.com>
Permalink:  ../6b8c0db0703120641j4539003ck49f28edb02408ae9@mail.gmail.com/
Also on:    postgresql.org/message-id/6b8c0db0703120641j4539003ck49f28edb02408ae9@mail.gmail.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: valentinorfila@gmail.com, matt@jobsforge.com, kitty3a@gmail.com
  Subject: Re: Problems in connecting to postgreSQL using PHP
  In-Reply-To: <6b8c0db0703120641j4539003ck49f28edb02408ae9@mail.gmail.com>
  References: <b3efba5a0703112125s23b7eac1u60639be8ac06def4@mail.gmail.com> <f22361d85ef58b122d12731d3888a589@jobsforge.com> <6b8c0db0703120637r2b7e010pbc3f2e403f61531e@mail.gmail.com> <6b8c0db0703120641j4539003ck49f28edb02408ae9@mail.gmail.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