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
, named phpinfo.php. Again,
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:
Example PHP Querying
";
} else
print "Connected";
?>
I've tried in
your own server.
> -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
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 function: pg_connect()
>
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
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 c