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

Re: Accessing Postgres db from apache using PHP

From: "A(dot)Bhuvaneswaran" <bhuvan(at)symonds(dot)net>
To: bruce <bedouglas(at)earthlink(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org, <pgsql-php(at)postgresql(dot)org>
Subject: Re: Accessing Postgres db from apache using PHP
Date: 2003-07-28 03:52:10
Message-ID: Pine.LNX.4.44.0307280920100.1209-100000@Bhuvan.bksys.co.in (view raw or flat)
Thread:
Lists: pgsql-novicepgsql-php
> 	$tmp = "host=localhost dbname=gforge user=gforge password=gforge";
> 	$conn = @pg_connect($tmp);
> 
> at this point $conn is not set... it should be a resouce if I've connect to
> the DB..!!!!!!!

Did you uncomment the below line in /etc/php.ini?
;extension=pgsql.so
If not do it and restart your httpd. Hope it helps.

regards,
bhuvaneswaran


In response to

pgsql-novice by date

Next:From: A.BhuvaneswaranDate: 2003-07-28 03:56:33
Subject: Re: Where's The Primary Key?
Previous:From: Nabil SayeghDate: 2003-07-28 02:42:17
Subject: Re: Where's The Primary Key?

pgsql-php by date

Next:From: bruceDate: 2003-07-28 04:53:32
Subject: Re: [PHP] Accessing Postgres db from apache using PHP
Previous:From: Rod TaylorDate: 2003-07-28 02:24:08
Subject: Re: [PHP] Accessing Postgres db from apache using PHP

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