Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id D3F349FB341 for ; Mon, 12 Mar 2007 10:37:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 81267-08 for ; Mon, 12 Mar 2007 10:37:44 -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.185]) by postgresql.org (Postfix) with ESMTP id 9C0669FB2CE for ; Mon, 12 Mar 2007 10:37:44 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id x4so2014167nfb for ; Mon, 12 Mar 2007 06:37:42 -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=QiX/0LKvpYZJArcM3Y4Xci361ILfEzOa6LhcecTYfcH0alFahvtvte8fbdiUSZu2FRehL3XNj4CEagskdJ733BP3BLrfndLHPY3FaGj7X/LyUfdYzQhGEsHHPjxrueX0JeCdO9Ij2DVNMqlGRNnL5VTzJ62B/vGcpy8yKHfAXkw= 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=OmP1zCBmYAIVHD8+cGeWSLpmzLdxyIcINaieQ9laT0IOV4Wd8h7ZsOb0p1ltVWOyQxsdhLm+skLdcM7SwqSLG4PhyIHnS0ResmjB2aMtKttmpVAC6u56AgZwNRxZ4E1/7YCyo9ewirB0ZOaqb234w0AfKH6MS49qqX2KNjvf6uw= Received: by 10.78.139.1 with SMTP id m1mr638376hud.1173706662235; Mon, 12 Mar 2007 06:37:42 -0700 (PDT) Received: by 10.78.160.6 with HTTP; Mon, 12 Mar 2007 06:37:37 -0700 (PDT) Message-ID: <6b8c0db0703120637r2b7e010pbc3f2e403f61531e@mail.gmail.com> Date: Mon, 12 Mar 2007 09:37:37 -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: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_309_32254814.1173706657141" References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.375 tagged_above=0 required=5 tests=BAYES_50, HTML_30_40, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200703/38 X-Sequence-Number: 3750 ------=_Part_309_32254814.1173706657141 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 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 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 > --=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_309_32254814.1173706657141 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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



--
*******************= ********************************************************
Ministerio de P= lanificaci=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=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_309_32254814.1173706657141--