Skip site navigation (1) Skip section navigation (2)

Re: Configure PostgreSQL on PHP

From: DIB Walid <walid(dot)dib(at)inria(dot)fr>
To: Adam Witney <awitney(at)sghms(dot)ac(dot)uk>,Carlos Lopes <clopes(at)adm(dot)ua(dot)pt>, pgsql-php <pgsql-php(at)postgresql(dot)org>
Subject: Re: Configure PostgreSQL on PHP
Date: 2003-06-27 10:01:59
Message-ID: 200306271002.h5RA21A01708@imap-serv.inrialpes.fr (view raw or flat)
Thread:
Lists: pgsql-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

In response to

Responses

pgsql-php by date

Next:From: utomo restuDate: 2003-06-27 11:13:32
Subject: Re: about blobs??
Previous:From: Adam WitneyDate: 2003-06-27 09:50:29
Subject: Re: Configure PostgreSQL on PHP

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group