gpt4 book ai didi

php - XAMPP 全部为未定义函数 pg_connect()

转载 作者:搜寻专家 更新时间:2023-10-31 21:02:05 24 4
gpt4 key购买 nike

我已经在 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)

但它对我不起作用。

有什么想法吗?

最佳答案

因为你用的是linux。

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

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

关于php - XAMPP 全部为未定义函数 pg_connect(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40005337/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com