[PHP] ldap_add errors
Hello, According to the PHP documentation for the ldap library, ldap_add() returns a boolean value. However, if there is an error, it immediately throws a Warning to the browser with display_errors on. I would like to do this: $result = ldap_add($ldap, $dn, $array) if (!$result) { trigger_error('some message'); } I could suppress it with @, but this will never give result a value. Can someone please shed some light on this for me. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php ldap
Santosh Jambhlikar wrote: Hi , I have a ldap server the user password are stored in that. my php ldasearch result says that the result is ldap user password : {SMD5}eRuT8dttD6M6N6tgMJF33/TNAvc= i want to compare this password with the user given password in other application (obviously php) but when i md5(passwordgiven) then it is showing different output. Any suggestions. MD5 and SMD5 are not the same type of encryption. md5() will not return the correct results. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: previous + next buttons, no DB
Ashley, How are you creating the gallery page? You must be reading the filenames in the directory and producing an img for each one. Can you create an array of those filenames, save it to session (or generate it each time), and iterate through them? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Catching all errors and redirecting
You can also try output buffering the whole page, checking for an error with string functions, and email yourself if there is an error. ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Earliest PHP/FI
Does anyone know where I would be able to find the earliest version of PHP/FI or PHP possible? I am looking for the earliest possible version for academic reasons. Thanks in advace. -- Jeff Loiselle - http://www.newnewmedia.com/~jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php