|
Publicité ' | |||||||||||||||||||||||
|
|
#1 | ||
|
Membre habitué
![]() |
Bonjour,
Ce script ne fonctionne pas : Code :
Mais j'ai cette erreur qui survient : Fatal error: Call to undefined function ldap_connect() J'ai verifié mon php.ini, l'extension php_ldap.dll est chargée. J'ai verifié le chemin vers mon repertoire d'extension php c'est ok. y'a quelqu'un qui peut m'aider?
__________________
-> N'oubliez pas de mettre résolu http://collinalexis.free.fr - http://ctt.stsav.stgerm.free.fr - http://www.cavernauto.com - http://kavinski.free.fr |
||
|
00
|
|
|
#2 |
|
Membre habitué
![]() |
Désolé pour ce post,
Je viens de trouver la solution à ce problème tout seul sur le web : Solved PHP LDAP error - Fatal error: Call to undefined function ldap_connect() After reading tens of articles and forum postings on the issue with error Fatal error: Call to undefined function ldap_connect() in Windows/PHP/Apache environment, I figured out why was this error appearing. Here is a checklist to make sure PHP-ldap functions work when called from Apache: 1. In php.ini, enable setting extension_dir - find the line with this setting - remove the comment-indicating semicolon in front of its line - find your PHP extension directory (usually c:\php\ext) - set the setting to this directory - save php.ini - restart apache 2. In php.ini, enable setting extension=php_ldap.dll - find the line with this setting - remove the comment-indicating semicolon in front of it - save php.ini - restart apache 3. Run your script containing ldap_connect() call from command prompt: php myscript.php You should get either no error message, or error message related to another problem/function. 4. Now - the part that solved my problem and is missing in all documents/postings on fixing the problem: - stop apache - make sure libeay32.dll and ssleay32.dll, used by Apache, are the latest ones, or at least the ones provided by the PHP installation in c:\php. If you have older versions of these DLLs somewhere in your system path (usually in c:\windows\system32)and for whatever compatibility or legacy reasons you don't want to update them, copy libeay32.dll and ssleay32.dll from c:\php to c:\Program Files\...\Apache\bin\ - start apache http://www.incredium.com/php-ldap-connect-error
__________________
-> N'oubliez pas de mettre résolu http://collinalexis.free.fr - http://ctt.stsav.stgerm.free.fr - http://www.cavernauto.com - http://kavinski.free.fr |
|
00
|
Copyright © 2000-2012 - www.developpez.com