![]() I had restarted MAMP after every edit I made since it was mentioned in every post I have read so far. ![]() Pgsql.max_persistent => Unlimited => Unlimited Pgsql.max_links => Unlimited => Unlimited Phpinfo() gives me a huge list of things at the terminal but the listings relevant to PostgreSQL are as follows:- pdo_pgsql Any kinda help will be highly appreciated. This is my first project developing a website and I am out of wits. 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. Fatal error: Call to undefined function pg_connect(). ![]() 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. I then installed PostgreSQL v8.4.8 on to my laptop and ran the website locally using MAMP. The remote server has a version later than PostgreSQL v9.0.4 installed. I have tried it but still does not change the situation. This statement is supposed to be commented and the solution is to uncomment it. 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). 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/The line 82 simply is: $db = pg_connect($conn_string) I am trying to connect to my database (remote server) which has PostgreSQL installed in it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |