调用未定义函数pg_connect() - WAMP [英] Call to undefined function pg_connect() - Wamp
本文介绍了调用未定义函数pg_connect() - WAMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要连接到PostgreSQL,进出口使用WAMP 64位。
我这里有
- 的Apache 2.4.2
- PHP 5.4.3
- 的Mysql 5.5.24
我也取消注释php.ini中的php_pgsql和php_pdo_pgsql。但我无法连接,它给我的错误是这样的:
错误燮pression忽视
致命错误(!):调用未定义的函数pg_connect()
有没有人知道关于我的问题的解决方案。
我只是需要很糟糕。
感谢您。
解决方案
- 开启的php.ini
- 找到
;延长= php_pgsql.dll
和开头删除分号 - 找到
;延长= php_pdo_pgsql.dll
和开头删除分号 - 保存文件
- 重新启动Apache
希望这有助于
I want to connect to PostgreSQL, Im using wamp 64 bit.
I have here
- Apache 2.4.2
- PHP 5.4.3
- Mysql 5.5.24
I also uncomment in php.ini the php_pgsql and php_pdo_pgsql. but i can't connect , It gives me error like this :
Error suppression ignored for ( ! ) Fatal error: Call to undefined function pg_connect()
Is there anybody know the solution regarding on my problem. I just need it badly.
Thank you .
解决方案
- 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
Hope this helps
这篇关于调用未定义函数pg_connect() - WAMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文