Help Conecting to a database from PHP - Mailing list pgsql-php

From David Cruz Ramos
Subject Help Conecting to a database from PHP
Date
Msg-id 3219C8BE8C5DCB4E95503D8E6B0BE901682512@sred01exs.redcolombia.local
Whole thread Raw
Responses Re: Help Conecting to a database from PHP
List pgsql-php
Hi All!

My PC has Slackware Linux 9.1 installed.

And Apache and PHP are working well....I can make and use the PHP functions in my web pages. Recently I've downloaded
andinstalled PostgreSQL 7.3.2, it seems to work well too, I can make databases, tables and all...But when I try to use
thePHP functions to connect to the database (pg_connect or pg_pconnect) it doesn't work. I've granted select permission
tomy user and nobody user in the table of the databse, and my pg_hba.conf seems to be ok (  localhost        all    all
  trust ). 
The browser even not give any error or something....it just don't work...

I think I'm using the function in the correct way: $conn = pg_connect ("localhost","","","","mydbname");

I've tried too: $conn = pg_connect ("dbname=mydbname");

with and without the port number (5432), and when I type: netstat -nat       it shows:

    0.0.0.0:5432      LISTEN

in the list

I'm starting the database server in this way: /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data

thanks....

does somebody know what can I do?

pgsql-php by date:

Previous
From: "Tom Hebbron"
Date:
Subject: Re: Saving result to file for download
Next
From: Mariusz Pekala
Date:
Subject: Re: Help Conecting to a database from PHP