Which Postgres version are you using?
The client API, is that pgtcl?
Did you compile the server with TCL libraries?
Any other details that could help to understand your environment..?
Make sure that Postgresql extension is available for you.
You can run phpinfo();, which will give you a lot of information, including all the available extensions. Look for section pgsql which has line items similar to these:
PostgreSQL Support enabled
PostgreSQL(libpq) Version 7.4.8
... ... ... ...
Or you can execute this code:
Expand|Select|Wrap|Line Numbers
echo extension_loaded('pgsql');
which will print 1 if you have pgsql library available on your server.
Apparently you don't have this extension available.
If you're running on your own server you should be able to install or load pgsql library.
If not, you may need to contact whoever owns the server.
I was having the same problem...the thing is that when you´re using a PHP version above 5.2.5 in windows, you just can´t load the pgsql extension. You gotta install php 5.2.5 or an older version, or just install a newer one and overwrite php_pgsql.dll with the one from PHP 5.2.5. I tested both ways with excelent results.
Hope you can solve your problem...