CALL TO UNDEFINED FUNCTION LDAP
Moderator: General Moderators
-
ralphsawaya
- Forum Newbie
- Posts: 5
- Joined: Fri May 23, 2008 4:25 pm
CALL TO UNDEFINED FUNCTION LDAP
hi everybody,
lately i have been trying tosynchronize the active directory with VTIGER(CRM) for user authentication.
but i have a little problem.
the error "call to undefined function ldap" stops me from doing that.
i made some searches about this subject but nothing was fruitful.
hope u can help.
thanks
lately i have been trying tosynchronize the active directory with VTIGER(CRM) for user authentication.
but i have a little problem.
the error "call to undefined function ldap" stops me from doing that.
i made some searches about this subject but nothing was fruitful.
hope u can help.
thanks
-
ralphsawaya
- Forum Newbie
- Posts: 5
- Joined: Fri May 23, 2008 4:25 pm
Re: CALL TO UNDEFINED FUNCTION LDAP
excuse me the error is "call to undefined function ldap_connect"
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: CALL TO UNDEFINED FUNCTION LDAP
is ldap installed? See http://ca3.php.net/manual/en/ldap.installation.php
-
ralphsawaya
- Forum Newbie
- Posts: 5
- Joined: Fri May 23, 2008 4:25 pm
Re: CALL TO UNDEFINED FUNCTION LDAP
hello again,
i have a test.php file(contains the function ldap_connect) that when i run it from the prompt command doesn't give me the error (i removed the semicolomn from the php.ini file before extension=php_ldap.dll).
BUT when i run the test.php file from the browser the error appears !!!!!!!!???????
y is that?
Plzzzzzzzzzzzz heeeeeeeeelpp . i'm getting crazy
i have a test.php file(contains the function ldap_connect) that when i run it from the prompt command doesn't give me the error (i removed the semicolomn from the php.ini file before extension=php_ldap.dll).
BUT when i run the test.php file from the browser the error appears !!!!!!!!???????
y is that?
Plzzzzzzzzzzzz heeeeeeeeelpp . i'm getting crazy
Re: CALL TO UNDEFINED FUNCTION LDAP
PHP5 has 2 different configuration files - 1 for CGI (which is what you'd use from the command line) and 1 for the Apache module. Make a phpinfo() page & see if the module is enabled.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
ralphsawaya
- Forum Newbie
- Posts: 5
- Joined: Fri May 23, 2008 4:25 pm
Re: CALL TO UNDEFINED FUNCTION LDAP
so what do u suggest me to do ?
what is the name of this second config php file for apache?
where i can find it?
and what am i supposed to do with it?
plz help me. i'am half crazy right now
what is the name of this second config php file for apache?
where i can find it?
and what am i supposed to do with it?
plz help me. i'am half crazy right now
Re: CALL TO UNDEFINED FUNCTION LDAP
Make a phpinfo() page - it'll tell you which php.ini file you need to edit.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
ralphsawaya
- Forum Newbie
- Posts: 5
- Joined: Fri May 23, 2008 4:25 pm
Re: CALL TO UNDEFINED FUNCTION LDAP
i love u man
.
it worked like a charm.
holy crap it took me 3 days to fix it.
but y in hell would the php.ini be located in c:\windows and not where the php folder is?
anyway i dont care.
10x
it worked like a charm.
holy crap it took me 3 days to fix it.
but y in hell would the php.ini be located in c:\windows and not where the php folder is?
anyway i dont care.
10x
Re: CALL TO UNDEFINED FUNCTION LDAP
c:\windows is probably where a bunch of config files go. In Linux, the config file usually goes in the /etc directory or in with all the Apache config files. The idea I think is to keep all config files in the same place, rather than all PHP related files in the same place.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Re: CALL TO UNDEFINED FUNCTION LDAP
Hello
I have the same problem.
I found an additional php.ini file in apache/bin, so uncommented the bit, but still get the error.
I have the same problem.
I found an additional php.ini file in apache/bin, so uncommented the bit, but still get the error.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.