PDA

View Full Version : simple PHP script



johnm
07-26-2006, 08:33 PM
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

Sarah
07-26-2006, 08:45 PM
Hi,

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

johnm
07-26-2006, 08:47 PM
Will do
Thanks
JohnM

navaldesign
07-27-2006, 07:26 AM
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.