Re: [PHP] How do remove WARNING message

2002-04-22 Thread Rasmus Lerdorf

Read the error handling chapter in the documentation.

-Rasmus

On Mon, 22 Apr 2002, Jean-Rene Cormier wrote:

 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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How do remove WARNING message

2002-04-22 Thread Dennis Moore

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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php