php and ldap_mod_replace()??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dev
Forum Newbie
Posts: 1
Joined: Wed Jan 15, 2003 3:02 am

php and ldap_mod_replace()??

Post by dev »

hi :) sorry for my english!!!! :wink:

i have to make an interface PHP which allows has user to
be connected with login and password, posts these attributes to him
and gives him the possibility of modifying some of it. all be well
until recording of the modifs .i have to test more stricks but nothing
has to make my code:

$attrib["telephoneNumber"][$indice]=$new_tel;
echo "tel".$attrib["telephoneNumber"][$indice];

$r=ldap_mod_replace($id_ldap,$dn_entree,$attrib);

if (!$r)
{
$msg_no_modif="<center><b>modification echoue<br><br>";
$msg_no_modif.="<a class=lien href='javascript:history.back()||document.referrer'>";
$msg_no_modif.="retour</a></b></center>";
ldap_close($id_ldap);
include ("HAUTPG.php");
print ($msg_no_modif);
include ("BASPG.php");
exit();
}
else
{
include ("HAUTPG.php");
echo "modif reussi";
include ("BASPG.php");
}

if you have a idee
Post Reply