PHP 5.2.8 is refusing to load php_pgsql.dll, with the following error:
php_pgsql.dll
Warning: PHP Startup: Unable to load dynamic library \'D:\\PHP\\ext\\
You have to add the following lines to you httpd.conf file:
PHPIniDir "c:/PHP/" Loadfile "C:\php\php5ts.dll" Loadfile "C:\php\libpq.dll" LoadModule php5_module "c:/PHP/php5apache2_2.dll"
Source: http://www.php.net/manual/en/pgsql.setup.php