On Sat, 11 Mar 2000, Charles Curley wrote:

> I have mod_php running on Apache, on Mandrake 6.1. I'd like to access a
> postgresql database from it. I just installed mod_php3-pgsql-3.0.12-12,
> so I suspect I am not doing something right there.
> 
> 
> 
> I have installed (among others) the following RPMs from the disty:
> 
> root@charlesc # rpm -qa | egrep -i \(php\|postgres\) | sort
> mod_php3-3.0.12-12
> mod_php3-manual-3.0.12-12
> mod_php3-pgsql-3.0.12-12
> postgresql-6.5.1-7mdk
> postgresql-perl-6.5.1-7mdk
> postgresql-server-6.5.1-7mdk
> 
> 
> In php.ini:
> 
> ;UNIX Extensions
> extension=pgsql.so
> ;extension=imap.so
> 
> and
> 
> [PostgresSQL]
> pgsql.allow_persistent        =       On      ; allow or prevent persistent link
> pgsql.max_persistent  =       -1      ; maximum number of persistent links. -1 means 
>no limit
> pgsql.max_links               =       -1      ; maximum number of links 
>(persistent+non persistent).  -1 means no limit
> 
> 
> pgsql.so is in /usr/lib/apache/, as it should be.
> 
> 
> 
> None the less, I get an error:
> 
> [error] PHP 3 Fatal error:  Call to unsupported or undefined function pg_connect() 
>in counter.php3 on line 45
> 
> That line being:
> 
>    $cntrconn = pg_Connect( "localhost",  "5432",  "",  "",  "counter");
> 
> The code is from a sample at the phpbuilder web site,
> http://phpbuilder.px.sklar.com/code.html?code_id=205
> 

Works here, did you remeber to restart apache? 

-- 
MandrakeSoft          http://www.mandrakesoft.com/
                                        --Axalon

Reply via email to