The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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.
     
  2. fishfreek

    fishfreek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    238
    Likes Received:
    0
    Trophy Points:
    16
    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:
    0
    You have to compile apache with postgreSQL support. Theres an option in easy apache.
     
Loading...

Share This Page