开发者

How do I get the PostgreSQL PHP extension working on Windows?

开发者 https://www.devze.com 2022-12-26 04:12 出处:网络
Will you be so kind to tell me why the sysytem can\'t load the PostgreSQL extension for PHP? In php.ini I write:

Will you be so kind to tell me why the sysytem can't load the PostgreSQL extension for PHP? In php.ini I write:

extension=php_pgsql.dll

But when I reboot, I get this warning:

Unable to load dynamic library: C:/PHP/exe\php_pgsql.dll.

There ar开发者_开发技巧e no problems with other extensions.


First, make sure php_pgsql.dll actually exists in c:\php\ext. If so, then you are likely missing libpq.dll, or Windows is unable to locate it at run-time.

libpq.dll should be in c:\php, and c:\php should be part of the PATH system variable.

Using dependancy walker, you can open php_pgsql.dll and see what DLL's it depends on to load and which ones Windows is unable to automatically find.

0

精彩评论

暂无评论...
验证码 换一张
取 消