Fatal error: Call to undefined function pg_connect()

后端 未结 17 1477
广开言路
广开言路 2020-12-02 23:07

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 th

17条回答
  •  甜味超标
    2020-12-02 23:27

    I also had this problem on OSX. The solution was uncommenting the extension = pgsql.so in php.ini.default and deleting the .default suffix, since the file php.ini was not there.

    If you are using XAMPP, the php.ini file resides in /XAMPP/xampfiles/etc

提交回复
热议问题