php error

From: Mike C <mike(at)stonebow(dot)otago(dot)ac(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: php error
Date: 2001-07-26 04:13:06
Message-ID: a05100e02b785477a3408@[139.80.76.58]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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
--

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ryan Mahoney 2001-07-26 04:14:44 Re: php error
Previous Message Martijn van Oosterhout 2001-07-25 23:41:07 Re: postgres deadlocks