etrader Posted August 29, 2011 Share Posted August 29, 2011 Is it possible to have a cron job merely by php ? not by OS (like linux cron). I mean having a php code to repeat a process on with a timer (e.g. every 5min). Quote Link to comment https://forums.phpfreaks.com/topic/245975-php-cron/ Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 29, 2011 Share Posted August 29, 2011 yes, only if the backend server is running the php file or a computer is turn on 24/7 to run the code. Quote Link to comment https://forums.phpfreaks.com/topic/245975-php-cron/#findComment-1263263 Share on other sites More sharing options...
cunoodle2 Posted August 29, 2011 Share Posted August 29, 2011 go to google and just search for.. how to execute a php script every 5 minutes via cron job There are a ton of examples Quote Link to comment https://forums.phpfreaks.com/topic/245975-php-cron/#findComment-1263272 Share on other sites More sharing options...
Mahngiel Posted August 29, 2011 Share Posted August 29, 2011 */5 * * * * php /path/to/file (i think i have enough stars) Quote Link to comment https://forums.phpfreaks.com/topic/245975-php-cron/#findComment-1263274 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.