Solved

PHP 5.3 on can't find php_pdo_pgsql.dll for postgres

Posted on 2011-09-10
3
1,195 Views
Last Modified: 2012-05-12
PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.5/ext/php_pdo_pgsql.dll' - The specified module could not be found.

Anyone know where I can find compatible dlls for postgres 9 and PHP 5.3? PHP by default can't find them.
0
Comment
Question by:metalaureate
  • 2
3 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36517066
They come with WAMP and PHP 5.3.  In the popup from the tray icon for PHP extensions, you put a check mark in front of 'php_pgsql' and 'php_pdo_pgsql'.  However, reading the comments in the WAMP forum it appears that not all versions work properly.  One comment says that EasyPHP does work right so you might want to check that out.  Here's one of the posts: http://www.wampserver.com/phorum/read.php?2,52679

And since PostgreSQL is not part of WAMP, you also have to do some extra manual configuration and put at least one DLL where Apache/PHP can find it.
0
 

Author Comment

by:metalaureate
ID: 36517278
I'm using wamp but the default dlls dont work with postgres 9
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36517290
You normally can not substitute DLLs from other versions of PHP.  PHP checks the version of the extensions to make sure they are compatible with the main interpreter.

A number of people in the WAMP forum said that several versions of those DLLs simply did not work.  If that is the case with what you have, you must change to a different version of PHP or find something other than WAMP.   Someone recommended EasyPHP as an alternative.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP Mail error 3 42
Ajax and PHP 4 47
MSSQL - Lock Row from reading by other programs 9 57
Special characters in a TCPDF 4 23
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question