Re: don't show error messages. how?

From: Chadwick Rolfs <cmr(at)shell(dot)gis(dot)net>
To: Jules Alberts <jules(dot)alberts(at)arbodienst-limburg(dot)nl>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: don't show error messages. how?
Date: 2002-04-19 16:39:55
Message-ID: Pine.SOL.3.96.1020419123645.6485B-100000@shell.gis.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

The @ symbol represses errors... I see someone already suggested that.
You also have the option of capturing this error, for debugging. Is that
what you want to do? Yet another option is to turn off errors entirely
externally, then you only have the logs to deal with... a simple tail
command could get you debugging info, if necessary.

hth

On Fri, 19 Apr 2002, Jules Alberts wrote:

> hello everybody,
>
> i'm creating a little login screen to connect from PHP to postgresel
> 7.2 with adodb. the key part it looks like this:
>
> include_once('adodb/adodb.inc.php');
> $c=ADONewConnection('postgres7');
> if ($c->PConnect('myserver',$id,$pwd,'mydb')) {
> youreCool();
> } else {
> tryAgain();
> }
>
> this works OK, only when login fails (incorrect user ID, password), i
> just want tryAgain() to run, without any errormessages. that's the
> problem, PConnect() will give an errormessage if it fails, it generates
> html like
>
> your connection has failed blah blah
> user ID ___________
> password ___________
>
> how can i suppress the message? with adodb? from within PHP?
>
> TIA for any pointers / help
>
> --
> Jules Alberts
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

Chadwick Rolfs - cmr(at)gis(dot)net
Cleveland State University - Student
Music Major - The Holden Arboretum Volunteer
Computer Programmer - Student Employee
--*I finally found powdered water;
I just can't figure out what to add to it*--

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Dave 2002-04-19 17:45:15 Re: Security - local(TRUST) and php/perl access
Previous Message Josh Berkus 2002-04-19 16:10:30 Re: Security - local(TRUST) and php/perl access