Hi, I'm a newbie here. I don't know what went wrong.
I've tried searching for solutions and can't find any.
How come pg_connect() isn't defined? Should I include
any header files or something in php?
Here's my code:
HTML
HEAD
TITLEExample PHP Querying/TITLE
BODY
?php
$conn =
Is PostgreSQL started with the -i switch? (I think that's the one; it
exposes it to tcp/ip connections.) Check your PGSQL docs to be certain.
Have you run a page with phpinfo? Is PostgreSQL support compiled into your
installation of PHP? This is a file consisting of
? phpinfo(); ?, named
Hello,
I am trying to run my first php script to connect to a PostgreSQL
database on a Linux box with apache web server.
When I try to load the page with the browser i get the following error:
Fatal error: Call to undefined function: pg_connect() in
/dirname/tryit.php on line 9
I was able to
This means that PostgreSQL support was NOT compiled into PHP. Therefore,
you cannot use PostgreSQL commands.
-Original Message-
From: Rodolfo Napoles [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 2:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Fatal error: Call to undefined
. Therefore,
you cannot use PostgreSQL commands.
-Original Message-
From: Rodolfo Napoles [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 2:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Fatal error: Call to undefined function: pg_connect()
in ...
Hello,
I am trying to run my
.
-Original Message-
From: Rodolfo Napoles [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 1:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Fatal error: Call to undefined function:
pg_connect() in ...
Is there a way to configure php (through the conf file?) to support