multithreaded Web servers - using Postgres extension

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ampersandz
Forum Newbie
Posts: 1
Joined: Fri Jun 06, 2008 7:07 pm

multithreaded Web servers - using Postgres extension

Post by ampersandz »

We have recently switched to a multi-threaded server and now I can't get Postgres working with PHP. Please help.

The dl() function doesn't work with multi-threaded servers (and I've tried it).
I've tried adding extension=php_pgsql.dll into php.ini under [PHP_PGSQL] and [POSTGRES] and dynamic extensions (simultaneously and separately)
I've tried reinstalling php
I've tried using the recommended php.ini file (changing it so that extension_dir and extension=php_pgsql.dll are set)

the extension exists at "c:\program files\php\ext\php_pgsql.dll"
extension_dir = "c:\program files\php\ext"
The server runs IIS.
PHP version: 5.2.6.6
Postgres version: 8.3.1.876
Post Reply