<?php // $ds is a valid link identifier for a directory server if (ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version)) { echo "Using protocol version $version\n"; } else { echo "Unable to determine protocol version\n"; } ?>
Notes
Note:
This function is only available when using OpenLDAP 2.x.x OR Netscape
Directory SDK x.x.