Re: Configure PostgreSQL on PHP

From: Adam Witney <awitney(at)sghms(dot)ac(dot)uk>
To: 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 09:50:29
Message-ID: BB21D1F5.1EC73%awitney@sghms.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php


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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message DIB Walid 2003-06-27 10:01:59 Re: Configure PostgreSQL on PHP
Previous Message utomo restu 2003-06-27 09:29:11 about blobs??