I want to add a page in my website by which I want conduct online exams. I want that my page is activate for 3 hours only. After 3 hours the page will submit itself as happens in online exams. Can any one give me any script how to make my page time constraint?
1条回答 默认 最新
douhai5835 2013-09-29 06:45关注$time = date('Y-m-d H:i:s');extract the
hourfrom thedateand do thisif ($hour > 10800){ // 10800 which is equal to 3 hours in seconds. submit the exam }don't rely on
javascriptto set the time because thejavascriptmay be disabled.解决 无用评论 打赏 举报