@ethelyn
To install ldap2 using XAMPP, you can follow these steps:
- Download the ldap2 extension from the official PHP pecl website: https://pecl.php.net/package/ldap2
- Extract the downloaded file and copy the ldap.so file to the PHP extensions directory in your XAMPP installation. This directory is typically located at xampp/php/ext/.
- Open the php.ini configuration file located in the xampp/php directory.
- Add the following line to the php.ini file to enable the ldap2 extension:
extension=ldap.so
- Save the php.ini file and restart the Apache server in XAMPP.
- To verify that the ldap2 extension has been successfully installed, you can create a phpinfo.php file in the xampp/htdocs directory with the following content:
- Access the phpinfo.php file in your web browser (e.g., http://localhost/phpinfo.php) and search for "ldap" to confirm that the ldap2 extension is loaded and working correctly.
That's it! You have successfully installed the ldap2 extension using XAMPP.