I found what was the problem :-( in PHP.ini the Temp directory was not setup the same. i do not know what is the link with LDAP module, but since i updated php.ini, it works correctly. Alain On 8/21/07, Colin Guthrie <gmane@xxxxxxxxxxxxxx> wrote: > > Alain Roger wrote: > > Hi, > > > > I have a stupid issue with ldap_connect. > > > > i've reinstalled PHP, postgreSQL and restore my data (web files) after > > reinstalling my PC. > > now, when i try : $ds = ldap_connect($ldaphost, $ldapport) or die("Could > not > > connect to $ldaphost"); > > > > nothing works. > > i wrote before error_reporting(E_ALL); in order to check which error > message > > i get, but nothing is return as error. > > > > what could be the problem ? > > > Silly question but is the PHP you installed exactly the same as the > previous one or did you select a different package? Perhaps PHP is > compiled without ldap support or perhaps you've not installed the > subpackage needed to enable ldap support. For me I have to install > php-ldap subpackage. > > I would expect to see a fatal error saying no such function etc. so this > is perhaps not the problem, but worth a look. > > Col > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Alain ------------------------------------ Windows XP SP2 PostgreSQL 8.2.3 Apache 2.2.4 PHP 5.2.3