1. run a script containing phpinfo() function and confirm you have support 
for pgsql
2. add code to display the error message generated by either php or pgsql 
when you try to connnect
3. (Maybe this should have been first) I don't know about Windows systems, 
but on *nix, PostgreSQL has to be started with the -i switch to be 
accessible from the Internet. Check docs.

Hope this helps - Miles Thompson

PS For help on the list #2 suggestion is really important.

At 06:10 PM 9/9/2002 +0200, Tomator wrote:
>I've installed MySQL and PostgreSQL on my XP. I'd like to make an PHP script
>working with pgsql base. I created database (typed "createdb name") but when
>trying execute script with "pg_connect("host=localhost dbname=name"); it
>Any suggestions?
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to