pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ray Hunter <rhunter@venticon.com>
To: pgsql-php <pgsql-php@postgresql.org>
Subject: Re: Configure PostgreSQL on PHP
Date: 27 Jun 2003 20:52:56 -0600
Message-ID: <1056768776.23517.4.camel@localhost.localdomain> (raw)
In-Reply-To: <009601c33cd8$53a635b0$4f5289c1@clopes>
References: <BB21D1F5.1EC73%awitney@sghms.ac.uk>
	<200306271002.h5RA21A01708@imap-serv.inrialpes.fr>
	<009601c33cd8$53a635b0$4f5289c1@clopes>

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 



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.
> 
> How do i compile php with the pgsql flag?
> 
> Carlos Lopes
> 
> ----- Original Message -----
> From: "DIB Walid" <walid.dib@inria.fr>
> To: "Adam Witney" <awitney@sghms.ac.uk>; "Carlos Lopes" <clopes@adm.ua.pt>;
> "pgsql-php" <pgsql-php@postgresql.org>
> Sent: Friday, June 27, 2003 3:01 AM
> Subject: Re: [PHP] Configure PostgreSQL on PHP
> 
> 
> I think he forget to compile php with the pgsql flag option.
> Walid
> Le Vendredi 27 Juin 2003 11:50, Adam Witney a écrit :
> > I don't think you need anything in your php.ini, you should be able to
> > connect like so:
> >
> >  $connstr = "dbname=<dbname> user=<user> password=<passwd> host=<host>";
> >
> >  $dbh = 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, but
> i
> > > can't put the pg_connect() command working.
> > >
> > > Can someone help me?
> > >
> > > Thanks
> > >
> > > Carlos Lopes
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
> 

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (7+ messages)

Message-ID: <1056768776.23517.4.camel@localhost.localdomain>
Permalink:  ../1056768776.23517.4.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1056768776.23517.4.camel@localhost.localdomain

 · 

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: rhunter@venticon.com
  Subject: Re: Configure PostgreSQL on PHP
  In-Reply-To: <1056768776.23517.4.camel@localhost.localdomain>
  References: <BB21D1F5.1EC73%awitney@sghms.ac.uk> <200306271002.h5RA21A01708@imap-serv.inrialpes.fr> <009601c33cd8$53a635b0$4f5289c1@clopes> <1056768776.23517.4.camel@localhost.localdomain>

* 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