Awilum Posted December 3, 2010 Share Posted December 3, 2010 I wrote wrong LDAP server for test but my script dont die! why ? in php.ini I wrote extension=php_ldap.dll and I have this lib in php/ext/ error_reporting(1); $ldaphost = 'my.office.company.com'; // Connecting to LDAP $ip = gethostbyname($ldaphost); $ldapconn = ldap_connect($ip) or die("Could not connect to $ldaphost"); echo 'done'; Link to comment https://forums.phpfreaks.com/topic/220550-php-ldap/ Share on other sites More sharing options...
trq Posted December 3, 2010 Share Posted December 3, 2010 Have another a read of the 'Return Values' section of the manual. here. Link to comment https://forums.phpfreaks.com/topic/220550-php-ldap/#findComment-1142556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.