Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Say I want a php script the run the function itstime() every hour. Other than setting up a cron job on the server how can I do this?

Or is this not possible because php scripts need to be opened to be ran?


share|improve this question
There is no other way that I am aware of. Is there a specific reason you cannot use a cronjob? – waiwai933 Jul 22 '09 at 3:06
up vote 1 down vote accepted

There's some web services doing this, for example

share|improve this answer

The only other way than to use cron or a webservice that runs cron is to use a workaround; each time the site is loaded by a user, check if it is more than an hour since last time and if it is, run the function. Not very pretty though..

share|improve this answer

you can write a daemon in php, although it's overkill to cron, you can google for it

share|improve this answer
thanks for the commentless downvote – asdmin Oct 21 '09 at 18:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.