pwes24 Posted January 30, 2008 Share Posted January 30, 2008 Hello everyone, I'd like to set an interval for a fuction to execute after x minutes. Anybody know how to write it? Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/88512-setting-interval/ Share on other sites More sharing options...
cooldude832 Posted January 30, 2008 Share Posted January 30, 2008 php is incapable of calling it self to run a function. (I.E At server time = 5:30 pm run Document Recycler.php) Additional php is not designed to run concurrently in the background of your server, its meant to do some stuff and die. To do what you want you are looking for the CRON tab in a unix system. Quote Link to comment https://forums.phpfreaks.com/topic/88512-setting-interval/#findComment-453102 Share on other sites More sharing options...
pocobueno1388 Posted January 30, 2008 Share Posted January 30, 2008 You need to set up a cron job. You can usually do this through your hosts control panel, although some hosts don't offer this (usually they do if they support PHP/MySQL), you just have to check. Quote Link to comment https://forums.phpfreaks.com/topic/88512-setting-interval/#findComment-453103 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.