ubuntu 10.04中的php pgsql驱动程序

时间:2011-10-05 02:54:29

标签: php postgresql ubuntu driver

这里似乎是什么解决方案,我确信我在我的Ubuntu 10.04上安装了pgsql驱动程序。

root@xxxx:/# apt-get install php5-pgsql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php5-pgsql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

但是当我运行带有pg_connect()的php脚本时,我总是收到这个错误:

Fatal error: Call to undefined function pg_connect() in ...

请任何想法。感谢。

1 个答案:

答案 0 :(得分:0)

你有没有在php.ini中加载模块?