Code: Select all
<?php
$test=pg_connect("host=localhost dbname=somedb user=someuser password=somepass");
?>I searched for this and it seems that pg_hba.conf has to be edited (?) and Postgres has to be restarted.
Im doing this on my web host - everything works ok on my PC - so how do I get a wrokaround for this ?
Thanks