I'm just hitting a roadblock for what should be something crazy easy.
I've rewritten some ridiculous java code into PHP, and when it's all said in done, in my java code I say
temp = session.getId()
filename = "blah"+temp;
And I have a unique filename for each user based on the session... I want to do the same on PHP... I don't really care what I append to the file, as long as it's guaranteed to be unique at that given time, it can be repeated in the future, just can't have two users writing to the same file for all the obvious reasons... so in short question format, what's the easiest way to grab some session related unique variable?
Follow up question...
for maintenance purposes...
can I have php automatically delete all files in a directory that are more than an hour old? I don't need to automate it, but just a chunk of code that can do that?
Thanks,
Rob
I've rewritten some ridiculous java code into PHP, and when it's all said in done, in my java code I say
temp = session.getId()
filename = "blah"+temp;
And I have a unique filename for each user based on the session... I want to do the same on PHP... I don't really care what I append to the file, as long as it's guaranteed to be unique at that given time, it can be repeated in the future, just can't have two users writing to the same file for all the obvious reasons... so in short question format, what's the easiest way to grab some session related unique variable?
Follow up question...
for maintenance purposes...
can I have php automatically delete all files in a directory that are more than an hour old? I don't need to automate it, but just a chunk of code that can do that?
Thanks,
Rob