From: Miguel Carvalho <miguel@ipatimup.pt>
To: jllachan@nsd.ca
Cc: pgsql-php@postgresql.org
Subject: Re: Where can I get error messages?
Date: Thu, 19 Sep 2002 21:10:17 +0100 (WEST)
Message-ID: <3940.193.136.62.21.1032466217.squirrel@www.ipatimup.up.pt> (raw)
In-Reply-To: <3D6CEA4B.76516A2E@nsd.ca>
References: <150770979970.20020828095147@surguttel.ru>
<3D6CEA4B.76516A2E@nsd.ca>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: miguel@ipatimup.pt, jllachan@nsd.ca
Subject: Re: Where can I get error messages?
In-Reply-To: <3940.193.136.62.21.1032466217.squirrel@www.ipatimup.up.pt>
References: <150770979970.20020828095147@surguttel.ru> <3D6CEA4B.76516A2E@nsd.ca> <3940.193.136.62.21.1032466217.squirrel@www.ipatimup.up.pt>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox