Hello,
I'm working on a script that will recive payments trough sms and open a webhosting account. That part is done, now I need help to make the script remind the webhostingclient after one year that it's time to renew/reactivete the account. The script needs to call/open/start a php script after one year that looks like this:
<?
// My login information
$mosms_username = "ditt-användarnamn";
$mosms_password = "ditt-lösenord";
$mosms_url = "http://www.mosms.com/se/sms-send.php";
// The reciver
$mosms_number = "0701234567";
// The type of the messange (should be text)
$mosms_type = "text";
// The messange
$mosms_data = "Testing testing 123";
// Call MOSMS and send the sms
$mosms_data = rawurlencode($mosms_data);
$result = file_get_contents($mosms_url . "?username=$mosms_username&password=$mosms_password&nr=$mosms_number&type=$mosms_type&data=$mosms_data");
if ($result <> "0") {
} else {
}
?>
The field "$mosms_data =" should be something miliar to: You need to reactivate your account $username, reactivate it by sending a sms to 123343 with the messange avd react $username.
The script should also disable the account, but that's not the main problem for the moment.
The account creating script is based on Multioster 1.0.7 (http://www.multihoster.com/) and uses mysql databases for storing members and their information. Maybe it is possible to add (if it isn't done automaticly) a date when the account was registrated? And in some way create a script that checks all accounts each day and sends out the messange above if a account is due?
Just ask if the information above isn't correct or if you need any more information.
You don't have to help me with all things above, but just point me in the right direction : ) I'm learning php for the moment and I'm learning, working 5 hours a day for the moment.
Thanks in advance,
Best Regards
Oskar R