Find If PHP Extension is Loaded

Use extension_loaded() to test whether a given extension is already available or not. This works on both built-in extensions and dynamically loaded ones. http://php.net/manual/en/function.extension-loaded.php List of Loaded Extensions print_r(get_loaded_extensions()); Function to Check if an extension … Read more

ldap_connect() is confusing

So why is this code returning “Success” no matter what? // LDAP variables $ldaphost = “sdfsdfs”; $ldapport = ‘389’; // Connecting to LDAP if (ldap_connect($ldaphost, $ldapport)){ echo ‘Success’; } else { echo ‘Failure’; } From … Read more