Re: php error

From: Ryan Mahoney <ryan(at)paymentalliance(dot)net>
To: Mike C <mike(at)stonebow(dot)otago(dot)ac(dot)nz>, pgsql-general(at)postgresql(dot)org
Subject: Re: php error
Date: 2001-07-26 04:14:44
Message-ID: 5.0.2.1.0.20010726001236.02356ec0@paymentalliance.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Attachment Content-Type Size
unknown_filename text/plain 166 bytes

In response to

  • php error at 2001-07-26 04:13:06 from Mike C

Browse pgsql-general by date

  From Date Subject
Next Message Dr. Evil 2001-07-26 05:02:30 Good random numbers in PG? And crypto-wishlist
Previous Message Mike C 2001-07-26 04:13:06 php error