getParentDir()
-
string getParentDir([string dn])
Example:
$ldap = new LDAP();
$ldap->cd("cn=Eric, ou=people, dc=ypass, dc=net");
if ($ldap->getParentDir() == "ou=people, dc=ypass, dc=net")
echo "It worked.";
else
echo "It didn't work.";
/* The following two function calls have the same effect */
$ldap->cd("..");
$ldap->cd($ldap->getParentDir());