PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ldap_explode_dn> <ldap_errno
Last updated: Fri, 14 Nov 2008

view this page in

ldap_error

(PHP 4, PHP 5)

ldap_error直近の LDAP コマンドの LDAP エラーメッセージを返す

説明

string ldap_error ( resource $link_identifier )

指定した link_identifier に関して、 直近の LDAP コマンドにより生成されたエラーを表すエラーメッセージ文字列を返します。 LDAP errno 番号は標準化されていますが、ライブラリによって異なる (あるいはローカライズされた)エラーメッセージを返します。 エラーメッセージの内容をチェックするのではなく、 必ずエラー番号をチェックするようにしてください。

php.ini で警告レベルを十分に下げるか、 警告出力を抑制するために LDAP コマンドの前に @ 文字をつけない限り、発生したエラーは HTML 出力にも表示されます。

パラメータ

link_identifier

ldap_connect() が返す LDAP リンク ID。

返り値

エラーメッセージ文字列を返します。



add a note add a note User Contributed Notes
ldap_error
edA-qa at disemia dot com
28-Jul-2008 06:43
For those wondering, this function appears to do the same thing as:
<?php
ldap_err2str
( ldap_errno() );
?>

ldap_explode_dn> <ldap_errno
Last updated: Fri, 14 Nov 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites