Fatal error: Call to undefined function pg_connect()

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

    install the package needed. if you use yum:

    yum search pgsql
    

    then look at the result and find anything that is something like 'php-pgsql' or something like that. copy the name and then:

    yum install *paste the name of the package here*
    

提交回复
热议问题