vmanne Posted September 16, 2008 Share Posted September 16, 2008 Hi, I have PHP working on Apache web server on Windows. I installed Postrgre for windows and can access it and create databases from pgAdminIII and command line. The problem : PHP is not able to access Postgre server. Error msg: Uncaught exception 'ADODB_Exception' with message 'postgres7 error: [-1: Missing extension for postgres] in CONNECT(localhost, '*****', '****', v01) Steps I've taken: 1. Enabled php_pgsql.dll file in php.ini file (by removing semi colon) 2. Downloaded php_pgsql.dll file and placed it on ext dir (that is the dir lcoation for extensions in php.ini) I am not able to determine what could be the issue. Any help is greatly appreciated. Thanks, Vik Quote Link to comment https://forums.phpfreaks.com/topic/124493-postgresql-83-php-on-windows/ Share on other sites More sharing options...
wildteen88 Posted September 16, 2008 Share Posted September 16, 2008 Make sure the extension has been loaded by running phpinfo() - scroll down the page and look for a PostrGreSQL subheadng. Also ensure the extension you have downloaded is of the same build as the version of PHP you have installed. Extensions for PHP5.2.5 will not work with PHP5.2.6. I'd recommend you go to php.net and downloaded the zipped binaries package, extract the contents of the zip over your existing installation. Quote Link to comment https://forums.phpfreaks.com/topic/124493-postgresql-83-php-on-windows/#findComment-643017 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.