Fatal error: Call to undefined function pg_connect()

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

    For those of you who have this problem with PHP 5.6, you can use the following command:

    yum install php56w-pgsql
    

    For a list of more package names for PHP 5.6, open the following link and scroll down to packages:

    PHP 5.6 on CentOS/RHEL 7.0 and 6.6 via Yum

提交回复
热议问题