2011-10-05 72 views
0

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

[email protected]:/# 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 ... 

任何想法,请。谢谢。

回答

0

你在php.ini中加载了模块吗?

+0

感觉有点奇怪,在** etc/php5/conf.d **下pgsql.ini丢失。增加这似乎解决了这个问题。 –