Hello
I have a problem:
I am creating a web hosting system. You send cash, etc. 50$, and get 500 credits for them (everything is saved in mysql). The plan price is 200 credits. It minuses from the 500 credits, ant activates hosting. I want, that after a month it would check, is there any credits, and if there is - 200 credits counts from the left 300 credits and continues working for a month, if there is no credits - the hosting suspends. How can I do that? I have PHP knowledge, but I don't know anything about cron jobs. How should it be programed?
I have a problem:
I am creating a web hosting system. You send cash, etc. 50$, and get 500 credits for them (everything is saved in mysql). The plan price is 200 credits. It minuses from the 500 credits, ant activates hosting. I want, that after a month it would check, is there any credits, and if there is - 200 credits counts from the left 300 credits and continues working for a month, if there is no credits - the hosting suspends. How can I do that? I have PHP knowledge, but I don't know anything about cron jobs. How should it be programed?