[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/ldap/functions/_ldap-bind.xml?=
From:       Christoph_Michael_Becker <cmb () php ! net>
Date:       2019-08-27 13:31:08
Message-ID: svn-cmb-1566912668-347900-394656150 () svn ! php ! net
[Download RAW message or body]

cmb                                      Tue, 27 Aug 2019 13:31:08 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=347900

Log:
Use non-deprecated ldap_connect() signature in examples

Changed paths:
    U   phpdoc/en/trunk/reference/ldap/functions/ldap-bind.xml

Modified: phpdoc/en/trunk/reference/ldap/functions/ldap-bind.xml
===================================================================
--- phpdoc/en/trunk/reference/ldap/functions/ldap-bind.xml	2019-08-27 11:24:24 UTC (rev 347899)
+++ phpdoc/en/trunk/reference/ldap/functions/ldap-bind.xml	2019-08-27 13:31:08 UTC (rev 347900)
@@ -83,7 +83,7 @@
 $ldappass = 'password';  // associated password

 // connect to ldap server
-$ldapconn = ldap_connect("ldap.example.com")
+$ldapconn = ldap_connect("ldap://ldap.example.com")
     or die("Could not connect to LDAP server.");

 if ($ldapconn) {
@@ -113,7 +113,7 @@
 //using ldap bind anonymously

 // connect to ldap server
-$ldapconn = ldap_connect("ldap.example.com")
+$ldapconn = ldap_connect("ldap://ldap.example.com")
     or die("Could not connect to LDAP server.");

 if ($ldapconn) {



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic