X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 0188331043C for ; Sat, 28 Jun 2003 02:55:09 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 83223-02 for ; Fri, 27 Jun 2003 23:54:58 -0300 (ADT) Received: from advancecreations.com (unknown [198.49.126.89]) by svr1.postgresql.org (Postfix) with SMTP id 62B0B310432 for ; Fri, 27 Jun 2003 23:54:57 -0300 (ADT) Received: (qmail 9754 invoked from network); 28 Jun 2003 02:54:57 -0000 Received: from slkcdslgw7poolc24.slkc.uswest.net (HELO ?192.168.150.4?) (65.100.200.24) by advancecreations.com with SMTP; 28 Jun 2003 02:54:57 -0000 Subject: Re: Configure PostgreSQL on PHP From: Ray Hunter Reply-To: rhunter@venticon.com To: pgsql-php In-Reply-To: <009601c33cd8$53a635b0$4f5289c1@clopes> References: <200306271002.h5RA21A01708@imap-serv.inrialpes.fr> <009601c33cd8$53a635b0$4f5289c1@clopes> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-tgbAOFCKp0d5qHpSweBs" Organization: Venticon Consulting Message-Id: <1056768776.23517.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 27 Jun 2003 20:52:56 -0600 X-Archive-Number: 200306/29 X-Sequence-Number: 2093 --=-tgbAOFCKp0d5qHpSweBs Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Here is what you will need to do: 1. Put the php_pg.dll file in you windows path. 2. Uncomment the pgsql dll in your php.ini file. 3. Your php.ini file needs to be in your path. 4. Restart your web server and then try running the page again. Hope that helps... -- Ray=20 On Fri, 2003-06-27 at 12:17, Carlos Lopes wrote: > I'm running php under Windows 2000 and on my php.ini file i uncomment the > line regarding the pgsql dll, but doesn't seems to work. >=20 > How do i compile php with the pgsql flag? >=20 > Carlos Lopes >=20 > ----- Original Message ----- > From: "DIB Walid" > To: "Adam Witney" ; "Carlos Lopes" ; > "pgsql-php" > Sent: Friday, June 27, 2003 3:01 AM > Subject: Re: [PHP] Configure PostgreSQL on PHP >=20 >=20 > I think he forget to compile php with the pgsql flag option. > Walid > Le Vendredi 27 Juin 2003 11:50, Adam Witney a =E9crit : > > I don't think you need anything in your php.ini, you should be able to > > connect like so: > > > > $connstr =3D "dbname=3D user=3D password=3D host= =3D"; > > > > $dbh =3D pg_connect($connstr); > > > > If this fails, what errors do you get? > > > > adam > > > > > Hi, can anyone tell me how to configure my php.ini file, so i can > connect > > > to a pgsql database? > > > > > > I already have the database installed and is working under pgAdmin, b= ut > i > > > can't put the pg_connect() command working. > > > > > > Can someone help me? > > > > > > Thanks > > > > > > Carlos Lopes >=20 >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings >=20 --=-tgbAOFCKp0d5qHpSweBs Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA+/QMIazmPVcw0EKwRAnmtAJ98RqtBXlKv2riI1QQ6cy4JloGG0QCeLpXW xF0x52X7LuJrqf4/5rpv9QY= =DJ+v -----END PGP SIGNATURE----- --=-tgbAOFCKp0d5qHpSweBs--