I've been asked a few hints on what to do when you don't have access to crontab on your server (in regards to my del.icio.us hack taga.licio.us)
Basically, you have two choices : a script to do stuff every time someone loads your blog page (such a script firsts get the current time to determine if there is actually something to do) or an external agent like a website monitoring service.
Scripts to emulate crontab
There are various scripts around, I'll recommend two I have tried and found efficient :
- Pseudocron, a simple PHP script
- Fake Cron, the first one I've used even before knowing about crontab (Perl script)
The scripts itselves are easy to configure, just edit them where commented. Include the script file in your main page footer for example. Every time your page is loaded, the script runs : it checks current time, and according to your crontab job list, does nothing or starts action. The more your page is loaded, the more efficient the script will be. This is a near perfect solution if your blog gets around at least one or two hits an hour.
Using a website monitoring service
This is an even easier solution to implement, since there can be no coding involved. There are dozens of free monitoring services around the net, the idea is to sign up with a free service that regularly checks a given URL (usually every one or two hours). Don't try something with services that ping or get HTTP headers to check if a host is online, you want something that actually fetches a page.
So, to use Uptime to regularly load a page, you just need to modify the script so that it echoes "Success" once its job is done.
Want to share or tweet this post? Please use this short URL: http://ozh.in/30