Re: Hmmm? PHP+PostgreSQL
| From: | Daniel Barton | Date: | Thu, 25 Oct 2001 02:27:36 +0000 |
| Subject: | Re: Hmmm? PHP+PostgreSQL | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13696@lists.php.net to get a copy of this message | ||
Have you checked if all modules are being loaded (obviously, PHP is being loaded into apache...but
is PHP loading mysql.so and pgsql.so?
Cheers,
Dan
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?
>
> Will be looking forward your answer,
> please, CC: to green@usa.dp.ua
>
> Thanks.
>
> --
> green
> [http://www.extrasy.net]
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
----------
Dan Barton
Terrestrial Program Biologist
Asst. Data Manager
Point Reyes Bird Observatory
http://www.prbo.org
dbarton@prbo.org
dbarton@grayflycatcher.org