Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

postgreSQL & Php

Discussion in 'General Discussion' started by justhost, Mar 23, 2004.

  1. justhost

    justhost Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Halifax, Nova Scotia
    Hello

    I have a design client who only has access to PostGreSQL so I am having to use that with my php scripts.

    The problem I am having is I am getting the following error message when I try to connect to database using: pg_connect() command.

    Fatal error: Call to undefined function: pg_connect() in /home/xxxxx/public_html/xxxx/people-post.php on line 126

    I have phpPgAdmin running and have created a database using it.

    It is when I try to run pg_connect() or pg_pconnect() I get the above error.? Does anyone have any suggestions?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. fishfreek

    fishfreek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    238
    Likes Received:
    0
    Trophy Points:
    166
    After you do this then run the phpinfo() command from a php file to verify the pgsql in the configure line and verify postgresql support within php.
     
  3. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    318
    You have to compile apache with postgreSQL support. Theres an option in easy apache.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice