Help Conecting to a database from PHP

Поиск
Список
Период
Сортировка
От David Cruz Ramos
Тема Help Conecting to a database from PHP
Дата
Msg-id 3219C8BE8C5DCB4E95503D8E6B0BE901682512@sred01exs.redcolombia.local
обсуждение исходный текст
Ответы Re: Help Conecting to a database from PHP  (Mariusz Pekala <skoot@qi.pl>)
Список 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 по дате отправления:

Предыдущее
От: "Tom Hebbron"
Дата:
Сообщение: Re: Saving result to file for download
Следующее
От: Mariusz Pekala
Дата:
Сообщение: Re: Help Conecting to a database from PHP