PHP

PHP jest obiektowym, skryptowym jezykiem programowania zaprojektowanym do tworzenia dynamicznych stron www.


Funkcje PHP

Oficjalna strona PHP

Dodatkowe aplikacje PHP

Dodatkowe modu³y PHP

Wortal PHP
teksty - nieruchomości kraków - mieszkania w słupsku - Opony samochodowe - technika - grunty


ldap_errno

ldap_errno

(PHP 3 >= 3.0.12, PHP 4, PHP 5)

ldap_errno -- Return the LDAP error number of the last LDAP command

Opis

int ldap_errno ( resource link_identifier )

Returns the standardized error number returned by the last LDAP command. This number can be converted into a textual error message using ldap_err2str().

Parametry

link_identifier

An LDAP link identifier, returned by ldap_connect().

Zwracane wartości

Return the LDAP error number of the last LDAP command for this link.

Przykłady

Unless you lower your warning level in your php.ini sufficiently or prefix your LDAP commands with @ (at) characters to suppress warning output, the errors generated will also show up in your HTML output.

Przykład 1. Generating and catching an error

<?php
// This example contains an error, which we will catch.
$ld = ldap_connect("localhost");
$bind = ldap_bind($ld);
// syntax error in filter expression (errno 87),
// must be "objectclass=*" to work.
$res =  @ldap_search($ld, "o=Myorg, c=DE", "objectclass");
if (!
$res) {
    echo
"LDAP-Errno: " . ldap_errno($ld) . "<br />\n";
    echo
"LDAP-Error: " . ldap_error($ld) . "<br />\n";
    die(
"Argh!<br />\n");
}
$info = ldap_get_entries($ld, $res);
echo
$info["count"] . " matching entries.<br />\n";
?>

Patrz także

ldap_err2str()
ldap_error()

galeria - statusygg - Bardzo smutne opisy na gg - Bardzo smutne gg - odzyskiwanie danych Wrocław - najlepsze darmowe programy w Polsce - Friseur einrichtung Friseureinrichtung Friseur einrichtung - sieci naprawa komputerów Szczecin serwis - pozycjonowanie i optymalizacja - Super komputery tanie - tylko dobre łożyska mają gwarancję - pozycjonowanie i optymalizacja pozycjonowanie i optymalizacja pozycjonowanie i optymalizacja - Webcam kamerki internetowe online - unecp - odzyskiwanie danych Szczecin

G:2,M:0,Y:2