Re: Where can I get error messages?

From: "Miguel Carvalho" <miguel(at)ipatimup(dot)pt>
To: <jllachan(at)nsd(dot)ca>
Cc: <pgsql-php(at)postgresql(dot)org>
Subject: Re: Where can I get error messages?
Date: 2002-09-19 20:10:17
Message-ID: 3940.193.136.62.21.1032466217.squirrel@www.ipatimup.up.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

> Why don't you use the DB::connect instead?
>
> "dr_sad(surguttel)" wrote:
>>
>> I've installed Postgres 7.2.2 on Linux SuSE 8.0 Pro.
>> >From other server (SuSE 8.0 Pro + Apache 2.0.39 + PHP 4.2.2) I'm
>> >trying
>> to get access to Postgres database, using PHP-script:

Can you login with the same user and password using pgsql?
Are the database server and webserver running on the same machine?

>>
>> <html>
>> <body>
>> <? $db = pg_connect(...); ?>
>> </body>
>> </html>
>>
>> I've no errors messages both in PHP log and Postgres console, but HTML
>> page was been generated this script are stoped on <body> tag. Where
>> can I get error messages? That is possible troubles?

If the script has stopped at pg_connect there are two things:
- the database server isnt running
- the password, login,machine ip you are using arent authorized to connect

Take a look at the log of postgres. For this, i hope you havent sent the
output of the postmaster to /dev/null.
Miguel

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Miguel Carvalho 2002-09-19 20:23:25 Re: transaction in postgres
Previous Message Sebastiano Cascione 2002-09-19 16:37:48 transaction in postgres