Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<?php $username = 'jon'; $password = 'password'; $resource = ldap_connect('server.southwesternedge.com'); ldap_set_option($resource, LDAP_OPT_PROTOCOL_VERSION, 3); $dn = 'uid=' . $username . ',cn=users,dc=server,dc=southwesternedge,dc=com'; $result = ldap_bind($resource, $dn, $password); if ($result) { echo 'Success'; } else { echo 'Failure'; }
This paste will be private.
From the Design Piracy series on my blog: