Jump to content

[SOLVED] Cron Job / Execute PHP Script hourly


Axeia

Recommended Posts

Okay I feel dumb for asking, but how do I go about making an hourly cronjob to execute a page?

 

from what I can tell so far is that I've two choices, either use PHP CLI or another app(wget/lynx) to actually make a page request. I'd prefer to use PHP CLI as it doesn't require any additional software and keeps things a bit more portable (although I've found a windows version of both lynx and wget).

My attempts have been:

crontab -e 0 * * * * /user/bin/php /srv/www/htdocs/app/file.php

crontab -e 0 * * * * wget 127.0.0.1/app/file.php

 

Both apparently having the wrong syntax, so how do I get one of these working (preferably the first).

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.