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). 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. 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 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) Link to comment https://forums.phpfreaks.com/topic/245975-php-cron/#findComment-1263274 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.