Foser Posted July 10, 2007 Share Posted July 10, 2007 Im trying to do something like execute this every 5 min or something like this but im not totally sure how this would go. Can anyone lead to to any date/time tutorials or something Link to comment https://forums.phpfreaks.com/topic/59245-time-function/ Share on other sites More sharing options...
NArc0t1c Posted July 10, 2007 Share Posted July 10, 2007 Crons. or $time = time(); $do_time = $time+900; // in 15 mins if ($time >= $do_time){ //Do script } Link to comment https://forums.phpfreaks.com/topic/59245-time-function/#findComment-294261 Share on other sites More sharing options...
Yesideez Posted July 10, 2007 Share Posted July 10, 2007 If you want the script to run silently in the background then the best way is to set it up as a cron job. If you want the page to refresh every 5 minutes while it is open then use a meta tag refresh in the <head> part of the file. Link to comment https://forums.phpfreaks.com/topic/59245-time-function/#findComment-294267 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.