September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool ldap_add(resource connectionID, string DN, array entry)
| connectionID | Connection ID |
| DN | Distinguished name of the entry to be added |
| entry | Array of the attribute information to be added |
Adds an entry.
Returns:
TRUE on success; FALSE on error
Description:
ldap_add() adds entries to an LDAP directory. The information to be added is stored in an array passed to the function. If an attribute has only one value, it must be passed to the function in the following format, or it will fail:
$entry_array["attribute"] = value
If an attribute has more than one value, a multidimensional array must be constructed as follows:
$entry_array["attribute"][0] = first value of the attribute $entry_array["attribute"][1] = second value of the attribute ...
Read now
Unlock full access