Re: [PHP] Slow LDAP Queries

2001-08-18 Thread Emilio Panighetti
. Retrieving data from the session (i.e. the > unserialize() function) is much less expensive then going to LDAP for > every hit to the web app. Thanks. That's what I'm doing now, and it really makes a difference., but still, I don't know why the LDAP query takes

[PHP] Slow LDA Queries

2001-08-18 Thread Emilio Panighetti
ime I call 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 ldap://".$s_ldapserver.":".$s_ldapport ); ldap_set_option( $ds, LDAP_OPT_PROTOC

[PHP] Re: MySql or flat database using PHP ?

2001-08-18 Thread Emilio Panighetti
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 at

[PHP] Slow LDAP Queries (PHP 4.0.4p1 RH 7.1)

2001-08-16 Thread Emilio Panighetti
ime I call 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 ldap://".$s_ldapserver.":".$s_ldapport ); ldap_set_option( $ds, LDAP_OPT_PROTOC