I have read many questions here about using mysql in background using php,
and many of them say “use cron jobs”,
but how do I use those?
A Google search didn’t give me much, so that’s why I am asking here…
I have read many questions here about using mysql in background using php, and
Share
Provided you’re running Linux (which cron runs on), you would do this:
crontab -eEscthen:wq<Enter>to save and quit (vi) orCtrl+o,Ctrl+xto save and quit (nano)The links Senouci posted will help you with the details, but here’s an example for running a job at midnight:
OR at reboot:
Note that this method works only if you have shell access. If you’re using cPanel, use the control panel there, provided it is allowed.