0

I am using php any mysql. I would like to create a timer that operates in the server side, and when time reaches a certain value (e.g. 06:00:00), it can trigger the running of another file (such as, update data of a table).

Actually, what kind of technique I shall use apart from php?

Thankyou...

1
  • what would be practical use of this timer? Commented Oct 27, 2011 at 11:55

5 Answers 5

6

You should look into cron jobs.

Sign up to request clarification or add additional context in comments.

Comments

3

This sounds like you need to use a cron job here is a decent tutorial for you!

Link

Comments

2

You need cron jobs for unix systems and task schedular for Microsoft systems.

It runs files when you set it to.

Comments

1

Obviously if you can use them - cronjobs are the correct solution. But if you just have a little webspace or something where you cant setup cronjobs you need something else. You could of course just do it in php but this istn nice, as you have no guarantee that it runs at specified time, maybe it will much later. The perfect solution to that scenario ist something like a webcron: https://stackoverflow.com/questions/163476/free-alternative-to-webcron

Comments

1

If you want events to occur on specific times on the server, use crontab to achieve this on Linux servers or Scheduled Tasks on Windows servers. You can then schedule the execution of a task at a specific time.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.