Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8944545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:03:04+00:00 2026-06-15T12:03:04+00:00

I have an application there we can take mock tests, when the user starts

  • 0

I have an application there we can take mock tests, when the user starts the exam in database the column called testStarted will be set to 1 and when the user ends the test the value of column will set back to 0 , i have done this because single user should not take more than one test at same time…

Now when user starts the test and he will not end it so that the value in the database will be 1 and he cant take test any more… so what i need is when the test time is completed the value should set back to 0 this should happen in server not in local machine how to do this????

PLEASE HELP ME…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:03:05+00:00Added an answer on June 15, 2026 at 12:03 pm

    You should look into cronjobs. Cronjobs can execute commands that do things at specific times or periodical. The best way to do this is to create a php script that changes the column back to 0 after lets say 100 minutes.
    A cronjob that runs every minute can verify what tests have been started 100 minutes ago and set the column to 0.

    You can find more info about the cronjobs here http://www.adminschoice.com/crontab-quick-reference

    Ask your hosting company how to set up cronjobs for your server.

    To run a cronjob you can use

    * * * * * wget -O /dev/null http://domain.com/link_to_script
    

    or something like

    * * * * * cd /var/www/html/folder && php cache_website_stats.php > /dev/null
    

    Depending on what you have available on your server

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight application running full screen. Is there a way i can
If I have a console application, is there any way I can handle the
there is an facebook application, you can see it there: http://www.facebook.com/tdmtravelclub?v=app_197602066931325&app_data=wlbb%3D1 You have to
I have an application where there are two types of user currently, Admin and
I have written a Windows application, that can take in some command line arguments
What application clients are there that can connect SQLite3 databases that have Write-Ahead Logging(WAL)
I'm doing a Rails application where people can take quizzes. I have a model
Is there an application that can take in my db/schema.rb and my models file
We have Win Forms application uses the 3rd party windows native controls. Can these
Background: I have an application with athletes, each of these athletes (Athlete model) can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.