WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this Article to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES SUBMIT AN ARTICLE PRINT
Title : Create an LDAP Address Book with PHP
Categories : PHP, LDAP
devarticles
devarticles
Date : 2003-01-17
Grade : 5 of 5 (graded 1 times)
Viewed : 8141
Search : More Articles by devarticles
Action : Grade This Article
Tools : My Favotite Articles


Submit your own code examples 
 


Introduction

Many have probably heard much about LDAP, but have no idea what it is or how it works.

I will not attempt to teach everything there is to know about LDAP, but here is a brief description of the protocol.

LDAP is a protocol for distributing directory information to many different resources. Most commonly it is used as a centralized address book, but it can be much more powerful depending on an organization's needs.

LDAP in its most basic form is a standard way to connect to a database. The database is optimized for read queries. Thus, it retrieves information very quickly, in contrast to additions or updates which are slower.

It is important to note that LDAP most often uses a hierarchal database, rather than a relational database to store data. Therefore, the structure is better represented with a tree than a table.

As a result, SQL syntax will be rendered unusable.

In short, LDAP is a fast way to retrieve centralized, static data containing information about people and/or resources.

Requirements



PHP v.4 (previous versions may work but are untested) compiled with support for LDAP, I.E. --with-ldap.
Publicly accessible LDAP directory. Two are provided in the example.

Overview of Example


1. Setup Public LDAP Server Information
2. Create LDAP Query
3. Connect to LDAP Server
4. Process Query if Connection Was Successful
5. Format Output
6. Close Connection
7. Make HTML Form for Search Interface
8. Echo Results

Read More...









Use PHP to Create Dynamic pdf Files
Categories : PHP, PDF
User identification using cookies in PHP and MySQL
Categories : PHP, Databases, MySQL, Cookies
User Authentication With Apache and PHP
Categories : PHP, Web Servers, Apache, Authentication
Static HTML Generation With PHP
Categories : PHP, HTML and PHP
Array Manipulation With PHP
Categories : PHP, Arrays
Data, its presentation and user interface forms
Categories : PHP, XML, User Interface
Executing SQL Server Stored Procedures With PHP
Categories : PHP, Databases, MS SQL Server
Using the .NET Assembly in PHP
Categories : PHP, .NET
PHP and MySQL News with Comments
Categories : PHP, Databases, MySQL
Installing Apache Web Server and PHP 4 on Linux
Categories : PHP, Web Browsers, Apache, Linux
Keep your Banner Waving
Categories : PHP, PHP Functions, Miscellaneous, Site Planning, Utilities
User Authentication With patUser (part 2)
Categories : PHP, Authentication, Security
Working with Permissions in PHP, Part 1
Categories : PHP, Security
Building a WAP site using PHP3 and MySQL
Categories : PHP, MySQL, WML, WAP
Smarty Introduction
Categories : PHP, Smarty, Beginner Guides