Re: php error - Mailing list pgsql-general

From Ryan Mahoney
Subject Re: php error
Date
Msg-id 5.0.2.1.0.20010726001236.02356ec0@paymentalliance.net
Whole thread Raw
In response to php error  (Mike C <mike@stonebow.otago.ac.nz>)
List pgsql-general
Call phpinfo() and see if you have postgres support compiled into php.  This would cause your error.

Good Luck!

-r


At 04:13 PM 7/26/01 +1200, Mike C wrote:

Hello,

Err message within a browser(http://its-macman.otago.ac.nz/~mike/index.php) =

Fatal error: Call to undefined function: pg_connect() in /Users/mike/Sites/index.php on line 2

Actual code in php file =

<?
$connection = pg_connect("host=its-macman.otago.ac.nz dbname=ontheweb user=postgres password=1g5MeNow");
if(!$connection) {
echo "Could not make a connection!";
exit;
}

I can't see whats wrong here (yes there is more code in the real doc, but this should not be giving an err on line 2)??

Regards
Mike

-- 

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.251 / Virus Database: 124 - Release Date: 4/26/01

pgsql-general by date:

Previous
From: Mike C
Date:
Subject: php error
Next
From: "Dr. Evil"
Date:
Subject: Good random numbers in PG? And crypto-wishlist