Jump to content

carry out function every 24 hours, without cron jobs??


Dragen

Recommended Posts

Okay.. I'm trying to write a script which gets a random number every day, or 24 hours.

I'm sure that the only way of doing this is using cron jobs, but I've checked with my host and they don't allow cron jobs :-\

 

Is there any other possible way of getting a script to activate every 24 hours?

Javascript isn't going to help in any case. I'm afraid your only real option is cron. If your current server does not support it, either find one that does or get yourself a free shell account somewhere, from that shell account you can request scripts on your site via cron.

You could add a snippet that runs and checks a value in the database against the date it was last edited. However this would entail an exra query on each request of the page you placed that query in - so as thorpe says a cron is really the only answer.

Javascript isn't going to help in any case. I'm afraid your only real option is cron. If your current server does not support it, either find one that does or get yourself a free shell account somewhere, from that shell account you can request scripts on your site via cron.

How do I go about getting a shell account? what is a shell account?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.