php-windows Digest 4 Mar 2001 21:22:50 -0000 Issue 474 Topics (messages 5812 through 5816): Re: pulling arrays from nested arrays? 5812 by: Doug Brewer Re: IE 5.5,authentication,PHP sessions: IE never stops running? 5813 by: John Henckel Installing in WIN98 2ed 5814 by: AnthonyBol.aol.com 5815 by: Phil Driscoll NEWEST CRAZE 5816 by: newmarketing5644.juno.com Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Perhaps I was unclear...I actually _want_ to modify the copy, that's why I made a copy, to preserve the original. My point was that this doesn't seem to create a valid copy of the original array: $new_array = $first_array["second array"]; Operations on $new_array seem to fail, because it isn't an array. Using a reference would modify the original, and I don't want to do that. Doug | -----Original Message----- | From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]] | Sent: Saturday, March 03, 2001 7:17 PM | To: Doug Brewer | Cc: [EMAIL PROTECTED] | Subject: Re: [PHP-WIN] pulling arrays from nested arrays? | | | At 01:21 04.03.2001, Doug Brewer said: | --------------------[snip]-------------------- | >$new_array = $first_array["second array"]; # what's wrong | with this? | | this is a copy of $first_array["second array"]. | | >while(list($this, $that) = each($new_array)) { | > # doesn't work! | >} | | this modifies the copy! | | After applying the modifications, do | $first_array["second array"] = $new_array; | to replace the original with the modified contents. | | Usually you would use references to arrays to handle this, | but I haven't | found a way yet to get list() to return references instead | of copies... | | | ...ebird | | >O Ernest E. Vogelsinger | (\) http://www.1-at-web.at/ | ^ ICQ# 13394035 | | | -- | PHP Windows 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] |
Ken, I didn't believe you that IE was so stupidly implemented until I tried it myself. You are right, IE 5 rememebers the password even though I hit CANCEL on the re-authenticate prompt. And it remembers the password even when I close all browser windows. If you decide to store authentication in the session, a good way to generate a 32 character "token" is md5(uniqid(rand())). You store a copy of this token in your database (with some expiration time) and give a copy of it to the user (either in the session or in a plain old cookie). For me to implement log-out is not so easy because I am using .htaccess. I guess I'll just require the crypt() of the PW to be in a cookie. Logout will just put garbage into the cookie. Hopefully no one will discover that they can hijack someone elses login by just deleting the cookie. :-( John Henckel alt. mailto:[EMAIL PROTECTED] Zumbro Falls, Minnesota, USA (507) 753-2216 http://geocities.com/jdhenckel/
Where can I find detailed instructions on installing PHP4 on a WIN98 machine. I will also need trouble shooting tips since I have checked several sources and none of the instructions have successfully been able to configure the machine properly even though the file type is recognized, it won't display properly. Thank you
The short answer is that the php installer should do it for you automatically. The longer answer is that many PWS users on Win 98 seem to have problems which are only solveable by reinstalling PWS. It seems that it can get itself into some kind of broken state where whatever you do with the script mappings, php won't run. Unless you need any of the particular PWS features, I would chuck it in the bin and install Xitami if you need a simple server for testing, or apache if your requirements are more complex. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
Hey...Janet Here... We Haven't Talked In So Long!! How Have You Been? Thought I would Forward you this email! I usually delete these but I opened this one, like what I saw, and thought you would like to see this. http://www.geocities.com/anewmarket9999/ IF THE LINK IS NOT HIGHLIGHTED OR YOU CANNOT CLICK ON IT. COPY AND PASTE IT IN YOUR BROWSER.