title: PHP ldap_connect() problems
body: <p>I am trying to get ldap_connect to work properly. It will work fine via CLI, but not when I open my php file via browser. </p>
  
  <p>Here is what I believe are the relevant details:</p>
  
  <ul>
  <li>Error message: Fatal error: Call to undefined function ldap_connect() in F:\Websites\ldap.php on line 4</li>
  <li>OS: Windows Server 2008 R2 x64</li>
  <li>PHP Directory: C:\Program Files (x86)\PHP</li>
  <li>libeay32.dll and ssleay32.dll have been added to both C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin and C:\Windows\System32. They were copied from C:\Program Files (x86)\PHP.</li>
  </ul>
  
  <p>Lines added to httpd.conf:</p>
  
  <ul>
  <li>LoadModule php5_module "C:/Program Files (x86)/PHP/php5apache2_2.dll"</li>
  <li>AddType application/x-httpd-php .php</li>
  <li>PHPIniDir "C:/Program Files (x86)/PHP"</li>
  </ul>
  
  <p>Things changed in php.ini:</p>
  
  <ul>
  <li>extension_dir = "C:/Program Files (x86)/PHP/ext"   (path set)</li>
  <li>extension=php_ldap.dll   (uncommented this line)</li>
  </ul>
  
  <p>I'm pulling my hair out, so I am more than happy to try anything people suggest. </p>