Axeia Posted May 4, 2009 Share Posted May 4, 2009 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). Quote Link to comment https://forums.phpfreaks.com/topic/156773-solved-cron-job-execute-php-script-hourly/ Share on other sites More sharing options...
Axeia Posted May 4, 2009 Author Share Posted May 4, 2009 For the love of.. I knew it was something simple, crontab -e ENTER 0 * * * * /user/bin/php /srv/www/htdocs/app/file.php and it seems to be fine. Guess I'll need a hour to ensure myself of that. Quote Link to comment https://forums.phpfreaks.com/topic/156773-solved-cron-job-execute-php-script-hourly/#findComment-825569 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.