Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/124493-postgresql-83-php-on-windows/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.