LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Andrew Braund <abraund_news@mail.com>
To : linuxsa@linuxsa.org.au
Date: Fri, 2 Jun 2000 23:06:29 +0930
RE: PHP/Postgres/apache probs
You might find the answer here;
http://www.troubleshooters.com/tpromag/200004/200004.htm#_phpdataenabledappusin
gpostgresql
Regards
Andrew Braund
> -----Original Message-----
> From: michael@pluto.senet.com.au [mailto:michael@pluto.senet.com.au]On
> Behalf Of Michael Davies
> Sent: Friday, 2 June 2000 22:40
> To: linuxsa@linuxsa.org.au
> Subject: PHP/Postgres/apache probs
>
>
>
> Hi all,
>
> I have a bog ordinary RedHat 6.1 install with PHP (php-3.0.12-6), apache
> (apache-1.3.9-4) and postgresql (postgresql-6.5.2-1). Straight from the
> box (well, netcraft burnt CD).
>
> The following simple php3 page...
>
> <html>
> <?
> echo ("I am the Walrus - googookachoo\n");
> $database = pg_connect ("dbname=mydb");
> <!-- also tried $database = pg_connect("", "", "", "", "mydb"); to no
> avail -->
> $ret = pg_exec ($database, "select * from installees");
> ?>
> </html>
>
> gives the following error:
>
> Fatal error: Call to unsupported or undefined function pg_connect() in
> /home/httpd/html/installfest/registration.php3 on line 4
>
> What completely stupid thing am I doing wrong? I've searched manuals to
> no avail. It seems that apache/PHP3 doesn't like my sql database, or
> more so that it doesn't like my pg_connect call. Why doesn't PHP like
> postgresql? It's open source afterall :-)
>
> Do I have to reinstall from src each of apache/php3/postgresql? What
> configuration stuff do I need to do to get the three talking? I have
> modified apache config files to recognise PHP, but there doesn't seem to
> be anything to do for PHP to talk to postgres.
>
> Any help welcomed?!?
>
> Michael...
>
> --
> Michael Davies \ Avoid the Win2k problem -
> michaeld@senet.com.au \ Run Linux! See
> http://www.senet.com.au/~michaeld \ http://www.linux.com
>
> --
> LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
> mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>
>
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page