ubuntu 10.04 中的 php pgsql 驱动程序
这里的解决方案似乎是什么,我确信我在 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 ...
请有任何想法。谢谢。
What seems to be the solution in here, I am sure I installed pgsql driver on my Ubuntu 10.04.
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.
But when I run my php script having pg_connect(), I always get this error:
Fatal error: Call to undefined function pg_connect() in ...
Any ideas please. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否已在 php.ini 中加载该模块?
Have you loaded the module in your php.ini?