Re: How do remove WARNING message

From: Date: Mon, 22 Apr 2002 18:55:13 +0000
Subject: Re: How do remove WARNING message
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94041@lists.php.net to get a copy of this message
I am not a LDAP expert, however I assume you can place a condition on your bind command to kill the script or go to your error reporting... <?php // do something like... ldap_bind($bindstr) or die("Enter your error message here"); ?> ----- Original Message ----- From: "Jean-Rene Cormier" <jrclist@cipanb.ca> To: <php-general@lists.php.net> Sent: Monday, April 22, 2002 1:03 PM Subject: [PHP] How do remove WARNING message > Ok I'm trying to create a script that would allow users to bind to an > LDAP server and we all know there's gonna be some people mistyping their > password but when I try to bind and put the wrong password I always get > a warning message like this: > > Warning: LDAP: Unable to bind to server: Invalid credentials in > /whatever/dir/script.php on line 53 > > Is there a way I don't get this message and I'd put my own error > message? > > Thanks > > Jean-Rene Cormier > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#94041) next »