Did you compile php or did you install from a binary? If you compiled -- did you configure the PHP module --with-pgsql? I have not installed a binary in the past so I am not sure how you activate the pgsql module in that regard. The problem though is that the version of PHP you are running is not configured to support pgsql and you will need to do that to get it recognize the pgsql specific functions. <?php /* Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com stephen@xxxxxxxxxxxxxxxx 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> > From: "Van Ingen, Lane" <lvaningen@xxxxxxxxx> > Date: Thu, 10 Mar 2005 14:32:39 -0500 > To: <php-db@xxxxxxxxxxxxx> > Subject: PHP and PostgreSQL > > I am new to PHP. Trying to install it and PostgreSQL 8.0 on Slackware Linux > 10.0.0 . I am getting > the following error out of Apache: > Fatal Error: Call to undefined function: pg_connect() > > After browsing your web site, I found http://us2.php.net/pgsql . But am unable > to proceed because I > am not sure what to do. Specific questions: > (1) How do I determine what version of PHP I have? Browsed PHP directories, > but couldn't find it. > (2) The information I found said I could use a "shared object module" and/or > (I think) alter php.ini . > > I don't think this is hard to fix, but I need to find a blow-by-blow of what > to do. Can somebody help me? > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php