Welcome Guest, Not a member yet? Register   Sign In
Job Alert System
#6

(04-19-2017, 01:37 AM)ojchris Wrote: Thank you visualsol for the idea on frontend implementation. But what I need is how to set up the cronjob, not really how to save the searched terms to the user's profile. Once the searched terms are stored, the code to implement the cronjob is what I have no idea how? Any help is appreciated.
You can write a Controller, which is doing that search task.
Make sure, that the php script is running on the cli. (https://www.codeigniter.com/userguide2/general/cli.html)
(so you prevent calls from the browser/other people)
Than you can run the php script on the cli on your server.
When you have a linux server, you could write a sh-script which is running the php-script.
This sh-script can you add to your Crontab.  (http://www.makeuseof.com/tag/linux-task-...explained/)
Reply


Messages In This Thread
Job Alert System - by ojchris - 04-12-2017, 11:06 PM
RE: Job Alert System - by Diederik - 04-13-2017, 12:36 AM
RE: Job Alert System - by ojchris - 04-16-2017, 03:03 PM
RE: Job Alert System - by visualsol - 04-17-2017, 04:33 AM
RE: Job Alert System - by ojchris - 04-19-2017, 01:37 AM
RE: Job Alert System - by Waschi - 04-19-2017, 05:52 AM
RE: Job Alert System - by ojchris - 07-21-2017, 07:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB