Once again, problems problems problems!

I'm using the following command to login in to a PostgreSQL database using PHP, and I constantly get an error on incorrect password (in the example below 'yada'), but I KNOW the password is correct, and I can't find anything in my database config that might be restricting me access. Has anyone got any ideas. The syntax i'm using is:

pg_connect("dbname=abc123 host=hostname user=booboo password=yada")

Thanks in advance for any help!