[PHP] explode question
Hello all, I would like to check some names ( @ seperated strings) with this global $PHP_AUTH_USER I first do $arrLoginName = explode("@", $row->usr_loginName); How can I construct a loop which stops and returns true if a match is found? Any hints would be great. Many thanks Roland
[PHP] explode question
Hello again, I'd better explain better. I have logon screen Header("WWW-Authenticate: Basic realm=\"whatever\""); where I would like the compare the user name $PHP_AUTH_USER with the one in my database All names like Mike or mike are @ seperated strings How can I check the names from this array $arrLoginName = explode("@", $row->usr_loginName) and return true if a name in the var $arrLoginName == $PHP_AUTH_USER How can I construct a loop which stops and returns true if a match is found? Any hints would be great. Many thanks Roland -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Session problem
Hello all each user gets a session id which can be reused later. I am writing all encoded details to for that session to mysql database. If the same user returns later (hours,day) he/she can use her Id (input box) and I get the details from the database. I did notice that the session id is also written to the /tmp folder. Linux mandrake. Things go wrong when I delete the session id in the /tmp folder. It should not be there in the first place I think, as all details of that session should be written to the db. Does somebody know how to fix this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] initialize session module
Hello What causes this error message is there a place to read a bit more about session module? Failed to initialize session module Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]