tags:

views:

24

answers:

1

Will you be so kind to tell me why the sysytem can't load POSTGRE 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 are no problems with other extensions.

A: 

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.

h0tw1r3
Where can I take libpq.dll
Where can I take libpq.dll?
http://downloads.php.net/pierre/libpq-php-4.4.9-5.2.6.zip
h0tw1r3