From: Adam Witney <awitney@sghms.ac.uk>
To: Carlos Lopes <clopes@adm.ua.pt>
To: pgsql-php <pgsql-php@postgresql.org>
Subject: Re: Configure PostgreSQL on PHP
Date: Fri, 27 Jun 2003 10:50:29 +0100
Message-ID: <BB21D1F5.1EC73%awitney@sghms.ac.uk> (raw)
In-Reply-To: <006e01c33cd2$d3d1da10$4f5289c1@clopes>
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.
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: awitney@sghms.ac.uk, clopes@adm.ua.pt
Subject: Re: Configure PostgreSQL on PHP
In-Reply-To: <BB21D1F5.1EC73%awitney@sghms.ac.uk>
References: <006e01c33cd2$d3d1da10$4f5289c1@clopes> <BB21D1F5.1EC73%awitney@sghms.ac.uk>
* 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