X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9AA58D1BB23 for ; Tue, 8 Jun 2004 09:22:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 16395-06 for ; Tue, 8 Jun 2004 12:21:48 +0000 (GMT) Received: from tomts25-srv.bellnexxia.net (tomts25.bellnexxia.net [209.226.175.188]) by svr1.postgresql.org (Postfix) with ESMTP id D3081D1C4E0 for ; Tue, 8 Jun 2004 09:21:21 -0300 (ADT) Received: from acer.sympatico.ca ([65.95.128.82]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20040608122113.UNRN28143.tomts25-srv.bellnexxia.net@acer.sympatico.ca> for ; Tue, 8 Jun 2004 08:21:13 -0400 Message-Id: <5.2.1.1.0.20040608081521.033bd310@pop6.sympatico.ca> X-Sender: b1wudu74@pop6.sympatico.ca X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Tue, 08 Jun 2004 08:20:35 -0400 To: pgsql-php@postgresql.org From: Frank Bax Subject: Re: Hi!, and a Question In-Reply-To: <20040608061707.99638.qmail@web50106.mail.yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_NJABL X-Spam-Level: X-Archive-Number: 200406/21 X-Sequence-Number: 2795 Check your apache log to see if error messages are being logged there. I'll make a guess anyway. With a connect statement like: $db = pg_connect("dbname=cdtaller4_3"); You should also have user=xxxxx inside the quotes. You may or may not have more success by adding host=localhost. Frank At 02:17 AM 6/8/04, David Cruz wrote: >Hi!, about this, I'm using it local, in the same >server is postgresql and the database and the apache >web server too. I have downloaded the php-pgsql again >and install it again, it was an rpm and i have knoppix >(debian), so I did it with #alien -i, I have this in >my php.ini > >------ >;;;;;;;;;;;;;;;;;;;;;; >; Dynamic Extensions ; >;;;;;;;;;;;;;;;;;;;;;; >; >; If you wish to have an extension loaded >automatically, use the following >; syntax: >; >; extension=modulename.extension >; >; For example, on Windows: >; >; extension=msql.dll >; >; ... or under UNIX: >; >; extension=msql.so >; >; Note that it should be the name of the module only; >no directory information >; needs to go here. Specify the location of the >extension with the >; extension_dir directive above. >extension=pgsql.so > >------ > >I have pgsql.so in /usr/lib/php4/20020429 which is the >place where phpinfo(); says it's searching for >extensions > > >------- >and my /etc/postgresql/pg_hba.conf says: > ># ># TYPE DATABASE USER IP-ADDRESS >IP-MASK METHOD ># Database administrative login by UNIX sockets >local all all > trust ># ># All other connections by UNIX sockets >local all all > trust ># ># All IPv4 connections from localhost >host all all 127.0.0.1 >255.255.255.0 trust ># ># All IPv6 localhost connections >host all all ::1 >ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust >host all all ::ffff:127.0.0.1/128 > trust ># ># reject all other connection attempts >localhost all all 192.168.1.6 > 255.255.255.0 trust > >------- >and the phpinfo page shows: > >pgsql >PostgreSQL Support enabled >Active Persistent Links 0 >Active Links 0 > >Directive Local Value Master Value >pgsql.allow_persistent On On >pgsql.auto_reset_persistent Off Off >pgsql.max_links Unlimited Unlimited >pgsql.max_persistent Unlimited Unlimited > >----- >I don't know what am I doing but it doesn't work, when >I execute the php web page: > >empleados"; $result = pg_exec($db, $query); if (!$result) { printf >("ERROR"); $errormessage = pg_errormessage($db); echo $errormessage; exit; >} ?> a index3 >It doesn't shows any error or something it stays on >the same page it was, and do nothing... > >Thanks...if somebody knows another configuration I'm >forgetting.. (PHP 4, Apache, PostgreSQL 7.4.2, Knoppix >3.4) > >thanks!