How can I stop PHP sleep() affecting my whole PHP code?

后端 未结 6 2054
北荒
北荒 2020-12-01 20:21

So, on my arcade, howlingdoggames.com. I have a points system that gives you a point every time you visit a page with a game on, now, to reduce abuse of this, I would like

6条回答
  •  温柔的废话
    2020-12-01 20:53

    No, not directly. You need to take a different approach, like remembering the timestamp of last visit and only add points if sufficient amount of time has passed since that.

提交回复
热议问题