I was wondering if there was anyway to connect to postgresql without hard coding my user name and password. This is the only way I could get my connection to work and I'm concerned about security issues. When I tried to get around it by using the defaults $pguser and $pgpassword:
$db_handle=pg_connect("dbname=journal user=$pguser password=$pgpassword");
I got the following errors:
Warning: Unable to connect to PostgreSQL server: fe_sendauth: no password supplied in /home/www/html/eJournal/test.php on line 29
Connection attempt failed.
Warning: Supplied argument is not a valid PostgreSQL link resource in /home/www/html/eJournal/test.php on line 39
Thanks,
Elizabeth
$db_handle=pg_connect("dbname=journal user=$pguser password=$pgpassword");
I got the following errors:
Warning: Unable to connect to PostgreSQL server: fe_sendauth: no password supplied in /home/www/html/eJournal/test.php on line 29
Connection attempt failed.
Warning: Supplied argument is not a valid PostgreSQL link resource in /home/www/html/eJournal/test.php on line 39
Thanks,
Elizabeth