You might also want to specify a user to connect as, otherwise the system
will assume you are trying to connect as the user you are logged in as.
Would defainately help a bit to know exactly what error your getting.

    - Edwin

----- Original Message -----
From: "Miles Thompson" <[EMAIL PROTECTED]>
To: "Tomator" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 11:52 AM
Subject: Re: [PHP-DB] POSTGRESQL & PHP


> 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
> >fails.
> >
> >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
>


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

Reply via email to