Prev | Current Page 510 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"


LDAP_INVALID_CREDENTIALS: The supplied binding credentials were invalid.
LDAP_INSUFFICIENT_ACCESS: The user has insufficient access to perform the
requested operation.
Not exactly user friendly, are they? If you??™d like to offer a somewhat more detailed
response to the user, you??™ll need to set up the appropriate translation logic. However,
because the string-based error messages are likely to be modified or localized, for
portability it??™s always best to base such translations on the error number rather than
on the error string.
CHAPTER 17 ?–  PHP A ND LDAP 443
Summary
The ability to interact with powerful third-party technologies such as LDAP through
PHP is one of the main reasons programmers love working with the language. PHP??™s
LDAP support makes it so easy to create Web-based applications that work in conjunction
with directory servers and has the potential to offer a number of great value-added
benefits to your user community.
The next chapter introduces what is perhaps one of PHP??™s most compelling features:
session handling. You??™ll learn how to play ???Big Brother,??? tracking users??™ preferences,
actions, and thoughts as they navigate through your application. Okay, maybe not their
thoughts, but perhaps we can request that feature for a forthcoming version.
445
?–  ?–  ?– 
C H A P T E R 1 8
Session Handlers
These days, using HTTP sessions to track persistent information such as user preferences
within even the simplest of applications is more the rule than the exception.


Pages:
498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522