Hi I need one of my php function to be executed again & again after fixed interval of time. Please point me to APIs in PHP which are capable of doing so. Thanks.
Asked
Active
Viewed 149 times
0
-
2May be you are looking for `cronjob` – Alive to die - Anant Jun 24 '16 at 05:03
-
3Use `crontab` to run the script periodically. – Barmar Jun 24 '16 at 05:03
-
1check out `cron tutorial php` on `google` and you will find code and video tutorial as well – Alive to die - Anant Jun 24 '16 at 05:10
-
@Anant & Barmar thanks for your info looking for tutorials – Prashant Jun 24 '16 at 05:12
-
Here is a question on SO with some information on running a php file using cronjob. http://stackoverflow.com/questions/18737407/how-to-create-cron-job-using-php – Locke Donohoe Jun 24 '16 at 05:15
-
@pcj because its too broad concept and varies based on requirement. So it's not possible to give any code right here. – Alive to die - Anant Jun 24 '16 at 05:15
-
@LockeDonohoe that question have no correct answer. So i don't think any of the solution is fully working. Also very less explanation is given. But let OP have to look to that too. May be he will get something useful from them – Alive to die - Anant Jun 24 '16 at 05:17
-
@Anant it was my impression that it had no **accepted** answer, not necessarily no **correct** answer. – Locke Donohoe Jun 24 '16 at 05:20
-
@Anant I was searching for what api to search hence no problem, I will figure out the usage of cronjob or crontab :) – Prashant Jun 24 '16 at 05:20
-
@LockeDonohoe yes you are right. That's why i said let OP have a look to that too also – Alive to die - Anant Jun 24 '16 at 05:22