Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id F234F9FB56E for ; Mon, 12 Mar 2007 10:41:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 66108-03 for ; Mon, 12 Mar 2007 10:41:19 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by postgresql.org (Postfix) with ESMTP id 0EE5A9FB525 for ; Mon, 12 Mar 2007 10:41:24 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id x4so2015635nfb for ; Mon, 12 Mar 2007 06:41:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=RDoWKBNaUCvJqyUoPCDxGkA43p9TClg1vGQq05IzpkDctqW841UodZ7fsvcGIQqwsgHaeKdWUo9I4SUAAnL159ZULP/OMm2+PltvymdTUEQ6PDamS/qW2Dim6oi41l7rz7isjtD/sIz9qTqMHnec9gB/Nw/AMk9loNIEO1MEWdI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=l3Ey2SpOvIvfig6w3GfShZBDdrxvolCP1YrLCINtX80hGaKQUweDZg7qsjDJ9DynveD/sGpYMhBxj6l7XAy+OrNcHaJGipm1bey0TOitQ+KrjcUEkURfbJwakpS0fZbWU6toPg3xK9mRIwd9SbcfapyaSo1crLl4QvY5htQ37u4= Received: by 10.78.178.5 with SMTP id a5mr638922huf.1173706882792; Mon, 12 Mar 2007 06:41:22 -0700 (PDT) Received: by 10.78.160.6 with HTTP; Mon, 12 Mar 2007 06:41:22 -0700 (PDT) Message-ID: <6b8c0db0703120641j4539003ck49f28edb02408ae9@mail.gmail.com> Date: Mon, 12 Mar 2007 09:41:22 -0400 From: "=?ISO-8859-1?Q?Valent=EDn_Orfila?=" To: "Matthew Terenzio" Subject: Re: Problems in connecting to postgreSQL using PHP Cc: "Kitty Yuen" , pgsql-php@postgresql.org In-Reply-To: <6b8c0db0703120637r2b7e010pbc3f2e403f61531e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_346_12666678.1173706882724" References: <6b8c0db0703120637r2b7e010pbc3f2e403f61531e@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.029 tagged_above=0 required=5 tests=AWL, BAYES_50, HTML_40_50, HTML_MESSAGE, SPF_PASS X-Spam-Level: * X-Archive-Number: 200703/39 X-Sequence-Number: 3751 ------=_Part_346_12666678.1173706882724 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline here is the script again 2007/3/12, Valent=EDn Orfila : > > 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 =3D "localhost"; > $base =3D "databasename"; //change it > $usuario =3D "postgresuser"; //change it > $password =3D "postgresuser"; //change it > > pg_pconnect("host=3D$servidor dbname=3D$base user=3D$usuario > password=3D$password"); > > ?> > > That's all what I can do for now > > 2007/3/12, Matthew Terenzio : > > > > 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 stil= l > > > 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=F3n y Desarrollo de la Rep=FAblica Bolivariana = de > Venezuela > Direcci=F3n de Planes de Personal > > Jos=E9 Valent=EDn Orfila Brice=F1o > Programador II > > Tel=E9fonos: Celular: (0416) 4131418 > > E-mail: valentinorfila@gmail.com > valentinorfila@hotmail.com > josevalentinorfila@yahoo.com > > Messenger: valentinorfila@hotmail.com > > Skype: valentinorfila > valentinorfila@gmail.com > *************************************************************************= ** > --=20 *************************************************************************** Ministerio de Planificaci=F3n y Desarrollo de la Rep=FAblica Bolivariana de Venezuela Direcci=F3n de Planes de Personal Jos=E9 Valent=EDn Orfila Brice=F1o Programador II Tel=E9fonos: Celular: (0416) 4131418 E-mail: valentinorfila@gmail.com valentinorfila@hotmail.com josevalentinorfila@yahoo.com Messenger: valentinorfila@hotmail.com Skype: valentinorfila valentinorfila@gmail.com *************************************************************************** ------=_Part_346_12666678.1173706882724 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline here is the script again

<?  /*---------------*/
 &n= bsp;  $servidor =3D "localhost";
     $base =3D "databasename"; //change i= t
     $usuario =3D "postgresuser"; //chan= ge it
     $password =3D "postgresuserpassword&= quot;; //change it
  
     pg_pconnect= ("host=3D$servidor dbname=3D$base user=3D$usuario password=3D$password= ");=20
  
?>

2007/3/1= 2, Valent=EDn Orfila <valent= inorfila@gmail.com>:
Hi!!! I'm Venezuelan and I don't know how to speak english very wel= l, so excuse me if i make a mistake.

About the connection: Did you d= o 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 se= e if you have anything wrong

<?  /*---------------*/
&nbs= p;   $servidor =3D "localhost";
     $base =3D "databasename"; //change i= t
     $usuario =3D "postgresuser"; //chan= ge it
     $password =3D "postgresuser"; /= /change it
  
     pg_pconnect("h= ost=3D$servidor dbname=3D$base user=3D$usuario password=3D$password");= =20
  
?>

That's all what I can do for now
<= br>
2007/3/12, Matthew Terenzio < matt@jobsforge.com>:
Could you provide any PHP errors or the pg_hba.conf ?

On Mar 12, 200= 7, at 12:25 AM, Kitty Yuen wrote:

> Hi,
>
> I am try= ing 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, w= hen I tried to remote access
> the database through SSH and I can con= nect with it.
>
> Would you please offer any suggestions or solutions?
&= gt;
> Manythanks,
> Kitty3A


-----------------------= ----(end of broadcast)---------------------------
TIP 2: Don't '= kill -9' the postmaster



--
******= *********************************************************************
Mi= nisterio de Planificaci=F3n y Desarrollo de la Rep=FAblica Bolivariana de V= enezuela=20
Direcci=F3n de Planes de Personal

Jos=E9 Valent=EDn Orfila Brice=F1o
Programador II

Tel=E9= fonos: Celular: (0416) 4131418

E-mail: valentinorfila@gmail.com
       &= nbsp;   valentinorfila@hotmail.com
       = ;    joseva= lentinorfila@yahoo.com

Messenger: valentinorfila@hotmail.com

Skype: valentinorfila
        &n= bsp;  valentinorfila@gmail= .com
***************************************************************= ************



--
***********************= ****************************************************
Ministerio de Plani= ficaci=F3n y Desarrollo de la Rep=FAblica Bolivariana de Venezuela
Dire= cci=F3n de Planes de Personal

Jos=E9 Valent=EDn Orfila Brice=F1o
Programador II

Tel=E9= fonos: Celular: (0416) 4131418

E-mail: valentinorfila@gmail.com
    &nbs= p;      valentinorfila@hotmail.com
       = ;    joseval= entinorfila@yahoo.com

Messenger: valentinorfila@hotmail.com

Skype: valentinorfila
        &n= bsp;  valentinorfila@gmail= .com
***************************************************************= ************ ------=_Part_346_12666678.1173706882724--