Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    2

    Unanswered: Regarding Datbase connectivity

    Hi everybody

    I had a databse connectivity probllm with postgres 8.1.4 from php5.2.3 it is showing
    the errror Call to undefined function pg_connect() in /var/www/new1.php on line 2 . I am using ubuntu 7.1.0 .Please help me in sorting out this problem.


    thanks
    suresh

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    has this web server connected to your postgres webserver before?....

    if it hasn't then I'd suggest you check the PHP configuration and build to make sure that either the Postgres server is correctly configured or that the PHP installation has the correct Postgres modules attached/built in. runing a script that calls the PHPinfo() function may be a good call to see what PHP thinks its set up to do.. but make sure its left as apart of your live server files as it gives all manner of information that be potentially useful to scum

    if other scripts are working then its something specific to that script, and never having used Postgres I can't comment further, beyond checking to make sure that the connection code and logic is as per the manual.

  3. #3
    Join Date
    Feb 2008
    Posts
    2

    Datbaseconnectivity Problem

    Hi everybody

    I had a database connectivity problem with postgres 8.1.4 from php5.2.3 it is showing
    the error Call to undefined function pg_connect() in /var/www/new1.php on line 2 in apache2 is my server . I am using ubuntu 7.1.0 .Please help me in sorting out this problem.Please tell me how to solve the problem


    Thanks
    suresh

  4. #4
    Join Date
    Mar 2007
    Location
    636f6d7075746572
    Posts
    770
    Suresh, healdem has already answered your question, and thus I will reiterate what he said:

    You have NOT compiled postgres with your PHP build. Use phpinfo() to verify this, and compile it in to resolve your problem.

  5. #5
    Join Date
    Feb 2008
    Posts
    1
    Hi
    pl check the phppostgre sql rpm is installed or not,
    check with phpinfo(), if it show postgresql database or not

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •