applying time constraint in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vapanchamukhi
Forum Newbie
Posts: 5
Joined: Thu Nov 06, 2008 3:51 am

applying time constraint in php

Post by vapanchamukhi »

i have written code for the generation of test paper. for that i have used html and php.. now when that test is given to a student to solve i want to put time constraint to that. so some body help how to do that... i am the newbie in php... please some body help me...
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: applying time constraint in php

Post by califdon »

vapanchamukhi wrote:i have written code for the generation of test paper. for that i have used html and php.. now when that test is given to a student to solve i want to put time constraint to that. so some body help how to do that... i am the newbie in php... please some body help me...
What do you want to happen? In other words, do you want the timer to begin when the browser opens the page or do you want to have a "Start Now" button or something? And what do you want to happen at the end of that time?

In any case, you can't do anything in PHP because there is no PHP in the file that is sent to the browser! It has all been executed in the server.

Whatever you want to do must be done with Javascript, which is a client-side script that executes in the browser.
Post Reply