【问题标题】:XAMPP all to undefined function pg_connect()XAMPP 全部到未定义的函数 pg_connect()
【发布时间】:2017-02-21 15:40:27
【问题描述】:

我已经在 Manjaro 中安装了 XAMPP。我正在努力解决这个问题。

Fatal error: Call to undefined function pg_connect() 

我已经阅读了一些帖子,我也尝试按照这些步骤进行操作

Open php.ini
Find ;extension=php_pgsql.dll and remove the semicolon at the beginning
Find ;extension=php_pdo_pgsql.dll and remove the semicolon at the beginning
Save the file
Restart apache (kudos @Inventillect) 

但这对我不起作用。

有什么想法吗?

【问题讨论】:

    标签: php linux postgresql xampp


    【解决方案1】:

    因为你使用的是linux。

    编辑文件php.ini,找到;extension="pgsql.so",去掉开头的分号。

    请注意“pgsql.so”与“php_pgsql.dll”不同

    【讨论】:

      猜你喜欢
      • 2016-10-02
      • 2013-09-25
      • 1970-01-01
      • 2018-10-03
      • 2013-01-28
      • 1970-01-01
      • 2013-03-21
      相关资源
      最近更新 更多