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'; Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/220550-php-ldap/#findComment-1142556 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.