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! 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. 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. Link to comment https://forums.phpfreaks.com/topic/88512-setting-interval/#findComment-453103 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.