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

Git Website Deployment Useful Sites

Automatically Deploying Website From Remote Git Repository http://caiustheory.com/automatically-deploying-website-from-remote-git-repository Using Git and a post-receive hook script for auto deployment http://www.deanoj.co.uk/programming/git/using-git-and-a-post-receive-hook-script-for-auto-deployment/ Manage your Web site with Git http://danielmiessler.com/study/git/#website