sunny

Hello guys, am back with my problems again. Still on the expiry thing, I want to …

Sun 19 Nov, 2017 07:11 am
Hello guys, am back with my problems again.
Still on the expiry thing, I want to send an SMS to notify a user on the impending expiration of his or her subscription. and I want it to be done without my interference. like let it be automatic.

I heard the said cron job. but I don't know how to go about the stuff.
Also I don't know if that is possible on shared hosting.

Comments

limistah

Sun 19 Nov, 2017 01:59 pm
I will suggest that you do some googling on implementing cron jobs.

But my explanation is: If your server supports running cron, you can write a code to check users table for the specified field that has not received notification and trigger an event or callback or whatever to send the SMS. Or you have a code somewhere that runs every interval(the interval must be stored somewhere to avoid overloadung your server). This code checks the user table for the field and trigger the SMS notification when necessary.
This is not suppose to be a flowchart just an analysis of how I can handle the task. I hope you get the gist