Hi@all,
I' writing on a webinterface for handling and changing entries in a ldap-server.
Aim is, collecting all entries in with their names an belonging telephonenumbers in an array. This should be pressed by a button:
1. new generated
2. downloadable
3. printable (? if its possible)
To get this infos into an array is not that problem, I'll do it like this:
...
$filter = "(uid=$uid)";
$attribut = array("sn","givenname","telephonenumber");
if($ds){
$r = ldap_bind($ds);
$result = ldap_search($ds,$LDAP_BASE_O, $filter,$attribut);
$entries = ldap_get_entries($ds, $result);
ldap_close($ds);
}else{
...
So, now I want to write $entries into a file, just containing this three attributes above, formated: 'surname, firstname telnr'. But I dont' understand these filehandling...
Where is this file defauld paced? Is ist always available? How do I seperate the attributes? Further, it should be visible in browser and if possible a button for printing...
Thanks for help,
Tanja