Fatal error: Call to undefined function pg_connect()

后端 未结 17 1469
广开言路
广开言路 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:36

    The solution has to do with the fact that your the file holding your php configurations. i.e php.ini has uncommented the extension responsible for acting as the middleman between php and postgres, by placing a ";" in front of the statement "extension=pdo_pgsql"

    Quick Fix

    1. Open the php.ini file in your favourite editor. (atom

提交回复
热议问题