RE: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Jeffrey Santos
Why not store a cookie and session variable with a randomly generated ID code (see uniqid function in manuals) then just check to see if one is equal to the other on your "relogin" This way you don't record any "personal" user information and can still do an autologin type script. - Jeff -Or

RE: [PHP] Having resource variables over several scripts

2005-10-10 Thread Jeffrey Santos
I was under the impression he was using the resource to get information then trying to pass that information... rereading it makes it seem otherwise, so sorry for the false information :-P I've never actually tried passing resources themselves among scripts so TG is most likely correct. As far a

RE: [PHP] Having resource variables over several scripts

2005-10-10 Thread Jeffrey Santos
Ben, If you grab the resource and store it in a variable, you certainly should be able to send it via GET or POST. For that matter, you should be able to store the information in a SESSION variable too, so I'm not sure what is going wrong. Could you email the code you are using to grab the resou

RE: [PHP] Mystery about chmod and permissions

2005-10-09 Thread Jeffrey Santos
To save on computing time, the results of the fileperms command are cached... I assume when you run a new instance of the program, it uses a new cache / old one is deleted when the first instance ends. Either way, you should clear the cache first: clearstatcache(); echo "Directory permissions fo