It depends... if you have a handful of records, you might start with a flat
file. but if you think you'll get to hundreds of records, go with a
database.
Even if all you want is a small array of data, go with a database.
If all you want is a simple array, you might consider use DBM files (Look
this function.
mod_ldap stores the user's dn on the REMOTE_USER environment variable.
Here's the function. I don't know how to make it faster.
Thanks,
Emilio Panighetti
?php
// Retrieves user's real name from LDAP
function ldapcnsearch()
{
$s_ldapserver = localhost;
$s_ldapport = 389;
$ds
uch time in the first
place.
Since these thoughts are not related to PHP, you can feel free to
contact
me off-list to discuss further.
Andy
Thanks,
Emilio
On Sat, Aug 18, 2001 at 05:07:26PM -0400, Emilio Panighetti wrote:
I have OpenLDAP and PHP 4.0.4p1 on a RedHat 7.1 (plain distribution
this function.
mod_ldap stores the user's dn on the REMOTE_USER environment variable.
Here's the function. I don't know how to make it faster.
Thanks,
Emilio Panighetti
?php
// Retrieves user's real name from LDAP
function ldapcnsearch()
{
$s_ldapserver = localhost;
$s_ldapport = 389;
$ds
4 matches
Mail list logo