AD LDAP - How to list all users within a Group
<p>Im currenlty using the following ADLDAP repository: <a href="http://adldap.sourceforge.net/" rel="nofollow">http://adldap.sourceforge.net/</a></p>

<p>On a page I am just currently trying to achieve: taking a list of users in a certain AD Group and put it into a dropdown for me to select in HTML. Right now I have this and I have not yet got it to show any users in the group yet: </p>

<pre><code>include (dirname(__FILE__) . "/../src/adLDAP.php");
    try {
        $adldap = new adLDAP();
    }
    catch (adLDAPException $e) {
        echo $e; 
        exit();   
    }

    $users = $adldap-&gt;group()-&gt;members('Group_X');
    echo $users;
</code></pre>

<p>Could someone please help me and guide me in the right direction to pull a list of users from a group in AD and make it be able to be used in a dropdown menu. </p>