Re: Hmmm? PHP+PostgreSQL

From: Date: Wed, 24 Oct 2001 21:24:58 +0000
Subject: Re: Hmmm? PHP+PostgreSQL
References: 1  Groups: php.general php.qa 
Request: Send a blank email to php-qa+get-3747@lists.php.net to get a copy of this message
On Mié 24 Oct 2001 18:24, Alexey Prohorenko wrote: > I've installed PostgreSQL into /usr/local/pgsql, then I tried > to include into my PHP support for PostgreSQL and made next: > (I had pre-compiled support for mySQL before that) > > make clean > ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning > --enable-track-vars --with-pgsql --with-mysql make > make install > > (I have mySQL, too) > Compilation process was great, no errors. > Nevertheless, next little PHP script: > > <html> > <head> > <title>testing needed functions of current-gtlg with PHP+PostgreSQL</title> > </head> > <body bgcolor=white> > <?php > $conn = pg_connect ("host=localhost port=5432 dbname=test user=postgres"); > ?> > </body> > </html> > > still says: > Fatal error: Call to undefined function: pg_connect() in > /usr/local/apache/htdocs/pg-php/index.php on line 7 > > What I did wrong, guys? Restart Apache!!! :-) Been there! :-P -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral -----------------------------------------------------------------

« previous php.qa (#3747) next »