ldap module problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • theS70RM
    New Member
    • Jul 2007
    • 107

    ldap module problem

    Hi,

    Im running Apache 2, PHP5 and mysql from an install of Apache Friends on a Windows XP machine.

    Im trying to use the ldap functions but getting the following error:

    Code:
    Fatal error: Call to undefined function ldap_connect() in C:\blah blah blah

    I've uncommented the "extension=php_ ldap.dll" line in php.ini, php5.ini and in the php4 directory in php.ini and php4.ini

    I've added c:\xampp\php to PATH environmental variable and php -m now works from anywhere and says that the ldap module is loaded.

    I've copied 2 files "ssleay32.d ll" and "libeay32.d ll" to the system32 directory as read in another post

    But i still get the same error!!!! and cant use the ldap functions


    Im begining to lose the will to live!

    Does anyone have any idea's whats wrong? What else I can try or how I can debug the problem?


    Thanks


    Andy
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Have you tried restarting the Apache server?
    You may even have to reboot Windows if you are messing around with system variables and DLL's.

    Comment

    • theS70RM
      New Member
      • Jul 2007
      • 107

      #3
      ok thanks, just sorted this.


      Apparently it doesnt use the settings from the php folder.... why would it?!

      there was another php.ini in the apache directory where i needed to uncomment the module.... even though it did already say it had it loaded.


      pah!

      Andy

      Comment

      Working...