Fatal Error Call To Undefined Function Pg_connect Linux
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of call to undefined function pg_connect() wamp this site About Us Learn more about Stack Overflow the company Business Learn call to undefined function pg_connect xampp windows more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question call to undefined function pg_connect() windows x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up
Call To Undefined Function Pg_connect() Ubuntu
Fatal error: Call to undefined function pg_connect() up vote 17 down vote favorite 6 I am trying to connect to my database (remote server) which has PostgreSQL installed in it. My PHP code is trying to connect to the database using pg_connect(), but I get the error saying:- "Fatal error: Call to undefined function pg_connect() in /var/www/website/functions.php on line 82". The line 82 simply call to undefined function pg_connect() mac is: $db = pg_connect($conn_string); where $conn_string = "host=".$hostname." port=5432 dbname=".$dbname." user=".$db_user." password=".$db_password."" (all variables defined earlier) I checked many forums and the only solution suggested was locating the php.ini file which contains a line:- extension = pgsql.so (for UNIX) and extension = php_pgsql.dll (for Windows). This statement is supposed to be commented and the solution is to uncomment it. I have tried it but still does not change the situation. The remote server has a version later than PostgreSQL v9.0.4 installed. I then installed PostgreSQL v8.4.8 on to my laptop and ran the website locally using MAMP. At first, Apache crashed for some odd reason, I fixed that problem but again I ended up with the same error as before i.e. Fatal error: Call to undefined function pg_connect().... I also ran the phpinfo() and it showed that the php version does support the PostgreSQL module.I have spent an entire day searching for the solution but have been unsuccessful. This is my first project developing a website and I am out of wits. Any kinda help will be highly appreciated. phpinfo() gives me a huge list of things at
pgsql-announce pgsql-bugs pgsql-docs pgsql-general pgsql-interfaces pgsql-jobs pgsql-novice pgsql-performance pgsql-php pgsql-sql pgsql-students Developer lists Regional lists Associations User groups Project call to undefined function pg_connect() centos lists Inactive lists IRC Local User Groups Featured Users International
Pg_connect Example
Sites Propaganda Resources Weekly News Fatal error: Call to undefined function pg_connect() From: Steve(dot)Toutant(at)inspq(dot)qc(dot)ca To:
Php-pgsql Package Windows
pgsql-php(at)postgresql(dot)org Subject: Fatal error: Call to undefined function pg_connect() Date: 2010-05-27 19:30:35 Message-ID: OFD667D637.1D62587D-ON85257730.006AE38B-85257730.006B2BA8@isn.rtss.qc.ca (view raw or whole thread) Thread: 2010-05-27 19:30:35 from Steve(dot)Toutant(at)inspq(dot)qc(dot)ca http://stackoverflow.com/questions/7438059/fatal-error-call-to-undefined-function-pg-connect 2010-05-27 22:50:55 from Chris
pgsql-announce pgsql-bugs pgsql-docs pgsql-general pgsql-interfaces pgsql-jobs pgsql-novice pgsql-performance pgsql-php pgsql-sql pgsql-students Developer lists Regional lists Associations User groups Project lists Inactive lists IRC Local User Groups Featured Users International https://www.postgresql.org/message-id/1275002355.3344.2204.camel@happy.home.mcmillan.net.nz Sites Propaganda Resources Weekly News Re: Fatal error: Call to undefined function pg_connect() From: Andrew McMillan