Help with thread lifetime in php?

Radoslaw P

New member
I am making a website like yahoo answers and I'm stuck with problem with lifetime of posted threads/questions. When a user post a question, it will automatically get a lifetime of, let's say a week, after which will question automatically close, with best answer chosen. What I need to set, so that when the time comes, server automatically calls function close question ? I was thinking about setting an global variable for each question open, with countdown (something like lifetime of user's session), but since in theory the number of questions open at same time is little big, I think that will be server consuming.
 
Back
Top