Follow us on Twitter!
Things are more like they are now than they have ever been before. - Dwight D. Eisenhower
Wednesday, April 23, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 25
Guests Online: 24
Members Online: 1

Registered Members: 82885
Newest Member: ConiBE
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

[php] TImed challenges?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 26-08-08 17:37
I want to create new Timed CHallenge and maybe send it (i hear, that Users can send their own task to the service).
But I've got a (big) problem.
In all task I can see "you have x second...". How can I write script, with I can check time with it? For example, someone will run script at 17:50:25. He has only 2 sec. to type good answer in the form. If he send the solution at 17:50:28, script will "say": quick?
Thanks for reply in advance Wink


Author

RE: [php] TImed challenges?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 26-08-08 18:02
I would guess they just use microtime() right after the opening tag, then again once you submit, and if the difference between second-first is <= the time limit, you pass the mission. You may have to cast it to a float, some of the examples I see do.


Author

RE: [php] TImed challenges?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 26-08-08 18:07
but how can i check time before add solution, and time after send right answer?
use session?