[PHP] LDAP resources
Are there any good resources out there that discuss the use of LDAP with PHP. It seems that because LDAP is not used as much as most database technologies the PHP site is not very good at explaining how to use the LDAP functions. My only other option was to go and buy an advanced PHP book. Thanks -- Caleb Walker CCSE, MCSE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] LDAP problems
Can anyone tell me what is wrong with this simple code? It errors with the ldap_get_values and says: "supplied resource is not a valid ldap result entry resource" I am very new at PHP LDAP so pardon my error... -- Caleb Walker CCSE, MCSE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can session.save_path data be saved to a database instead of a file system?
I have 2 servers fail-over/load-balanced behind an F5 bigIP. I want session data to be maintained in the event one server takes a dive. In this scenario, if a user is in the middle of doing something while logged in, they will not have to lose all work and log back into the server to continue working. Can that be done without rewriting an application? I saw a link here: http://www.phpfreaks.com/quickcode/DB_eSession_class_securely_stores_PHP_sessions_in_a_MySQL_DB/286.php but this seems to be something that would have to be written into the application and I didn't write it and do not want to take on the responsibility to do so from here. Any thoughts would be much appreciated. Thank You, Caleb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Can session.save_path data be saved to a database instead of a file system?
On Wed, 02 Jun 2004 10:29:31 +0100, Michael Nolan wrote: > Caleb Walker wrote: > >> I have 2 servers fail-over/load-balanced behind an F5 >> bigIP. I want session data to be maintained in the event one server takes >> a dive. In this scenario, if a user is in the middle of doing >> something while logged in, they will not have to lose all work and log >> back into the server to continue working. Can that be done without >> rewriting an application? >> I saw a link here: >> http://www.phpfreaks.com/quickcode/DB_eSession_class_securely_stores_PHP_sessions_in_a_MySQL_DB/286.php >> but this seems to be something that would have to be written into the >> application and I didn't write it and do not want to take on the >> responsibility to do so from here. Any thoughts would be much appreciated. >> >> Thank You, >> Caleb >> > > > Yes, you can use a database to store session data and retain existing > session manipulation methods. Surprisingly, the PHP manual tells you how: > > http://uk.php.net/manual/en/function.session-set-save-handler.php > > And lists a couple of examples, including this one at Zend: > > http://www.zend.com/zend/spotlight/code-gallery-wade8.php > > Mike This looks like modifications that need to be made to the application. I dont really want to touch the application. Instead I just want PHP, through the php.ini file or whatever to take the session data and put it in a database instead of the file system. In doing it this way, I assume that I will not have to touch somebody else's code. Thanks for the response. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Can session.save_path data be saved to a database instead of a file system?
>> > > This is how I would do it and would require no additional changes to the > code - just set your auto prepend in a .htaccess file if you're using > Apache. This sounds interesting. Could you elaborate a little more? I mean what is the "auto prepend" and what is the syntax for the .htaccess? Thanks very much. Caleb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php