Closed Thread
Results 1 to 4 of 4

Thread: simple PHP script
      
   

  1. #1
    johnm is offline Private
    Join Date
    Jul 2006
    Posts
    3

    Question simple PHP script

    Hello,
    I have a php script in a web page that connects to a postgres DB on another server. This script is functional and works on a standard Apache 2.2.x web server. I can not get it to work when published inside a Bluevoda page. the error that I get is:
    Fatal error: Call to undefined function: pg_connect() in /home2/nnwmjywd/public_html/rates2.php on line 249

    here is the start of the script with the obvious changed to protect the innocent:
    <?php

    $dbconn = pg_Connect ("host=xxx.xxx.xxx.xxx port=xxx dbname=xxx user=xxx password=xxx");
    as I said this works other places so I am guessing I am missing a config at vodahost?
    Thnak you for any sugestions,
    JohnM

  2. #2
    Sarah's Avatar
    Sarah is offline Colonel
    Join Date
    May 2005
    Location
    Wilmington, Delaware
    Posts
    513

    Default Re: simple PHP script

    Hi,

    Could you please open a support ticket so we can look into this for you?

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  3. #3
    johnm is offline Private
    Join Date
    Jul 2006
    Posts
    3

    Default Re: simple PHP script

    Will do
    Thanks
    JohnM

  4. #4
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: simple PHP script

    It seems that your script is calling a user defined function (pg_Connect). Usually php functions are either defined inside the script itself, or called through a include ("?????.inc.php") command line. So, a good guess is that you have not the necessary code in your script to define the function, or you have not uploaded the necessary "?????.inc.php" file.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49