i am using PHP4 with PostGreSQL 6.5.3 on Linux RedHat 6.1 I'm not using mod_?? to connect to the pg database. Instead, i'd compiled PHP4 with the '--with-pgsql' flag, and the apache server has been compiled with the '--activate-module=.../.../libphp4.a'. Everything 's working perfectly ! >>> Charles Curley <[EMAIL PROTECTED]> 12/03/00 03h54 >>> 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 -- -- C^2 No windows were crashed in the making of this email. Looking for fine software and/or web pages? http://w3.trib.com/~ccurley
