Click here to get back home

driver PDO for PostgreSQL

 HomeNewsGroups | Search

comp.lang.php - PHP programming language discussions 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
driver PDO for PostgreSQL Jivanmukta 06-10-2009
Posted by Jivanmukta on June 10, 2009, 10:48 am
Please log in for more thread options
Hello,
I use Apache 2.2, PostgreSQL 8.3 and PHP 5.2.9-2 in Windows XP Home. I
would like to use PDO driver for PostgreSQL.
In php.ini I have:

extension_dir="C:/Program Files/PHP/ext/"
[PHP_PDO]
extension=php_pdo.dll
[PHP_PDO_PGSQL]
extension=php_pdo_pgsql.dll

(and there are such files in ext/ folder).
Problem: phpinfo does not show PDO pgsql, although I shows PDO for
MySQL and SQLite.
In error.log of Apache I noticed (messages are in Polish):

PHP Warning: PHP Startup: Unable to load dynamic library 'C:/Program
Files/PHP/ext/php_pdo_pgsql.dll' - Nie mo\xbfna odnale\x9f\xe6 okre
\x9clonego
modu\xb3u.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/Program
Files/PHP/ext/php_pdo_sqlite_external.dll' - Nie mo\xbfna odnale\x9f
\xe6
okre\x9clonego modu\xb3u.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/Program
Files/PHP/ext/php_pgsql.dll' - Nie mo\xbfna odnale\x9f\xe6 okre
\x9clonego
modu\xb3u.\r\n in Unknown on line 0

The Polish message means: Cannot find module ...
Please help.
Thanks.

Posted by Jerry Stuckle on June 10, 2009, 2:31 pm
Please log in for more thread options
Jivanmukta wrote:
show/hide quoted text

I'm not sure which files you're indicating aren't found - are they the
PHP dlls? If so, do they exist in the directory?

If the message is referring to something else and the files do exist in
the directory, do you have the PostgreSQL libraries installed and
available to the web server?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Posted by Jivanmukta on June 12, 2009, 1:33 pm
Please log in for more thread options
show/hide quoted text
Yes. They are PHP DLLs and they exist in the directory.

show/hide quoted text
erver?
I downloaded PostgreSQL from producer's website. I don't know what
libraries you mean. PHP packege contains extensions (mentioned DLLs)
which I enabled in php.ini. I didn't install other packages with
PostgreSQL libraries.

Please help.

Posted by Jerry Stuckle on June 12, 2009, 2:32 pm
Please log in for more thread options
Jivanmukta wrote:
show/hide quoted text
server?
show/hide quoted text

All the PHP libraries do is provide linkage to the PostgresSQL
libraries. They are not Postgres in themselves. You still need the
Postgres libraries available to the web server, i.e. in your PATH statement.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Similar ThreadsPosted
PDO driver for PostgreSQL in WAMP Server June 8, 2009, 12:30 am
New PDO driver for SQL Server May 5, 2008, 12:41 pm
*nix Access ODBC driver April 11, 2009, 8:39 am
driver not found error when trying to use PDO, PHP (5.2) and mysql November 24, 2006, 12:44 pm
phpunit3 using PDO could not find driver postgres December 13, 2007, 8:15 am
Netware: access database over JDBC driver April 14, 2008, 10:03 am
OT: PostgreSQL April 28, 2005, 8:04 pm
PHP PostGreSQL CMS ? October 4, 2005, 10:53 pm
PHP with sybase or postgresql July 29, 2004, 10:23 pm
PostgreSQL vs. MySQL May 9, 2005, 3:20 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy