codeigniter - Cron Job on a function or url PHP -
i want run cron job in such way :
- function or url call every hour custom time when needed.[ex. 9:45,10:45,11:45 etc.]
- i need time variable[ex. 9:45 am] available in function when function or url called .
- i use time query database,so necessary
so far have created function run dont know how run it. searched solution there many similar questions not related this.
**url example :** **function example :** function getalldata_get(){ //time cron job //run query using time }
if need call cron job externally, can use 3rd party job scheduler service(https://cronless.com/).
if there no need call external locations, have use task scheduler service available on operating system.
on windows: task scheduler ( ref: task scheduler )
on linux: cron daemon ( ref: cron daemon )
Comments
Post a Comment