Hi,
I'm attempting to write a membership script in which access to password protected areas expires after a specified period of time.
Users register and their info is save to a file. Here is an example:
username:a28eA62qa0DyA:12-16-99:ted:tedd@ted.net:945339114:2:asdf main:houston, tx aasdf
The above format is username, password, date registered, first name, email, expiration date ($expires), address, city state zip
I calculate the expiration date based on the following:
$membershiplength = 30;
$expires = time() + 86400 * $membershiplength;
My problem is writing the code that will delete the user data from the file when access has expired.
Any samples or help would be appreciated!!!!
Thanks,
Tim
I'm attempting to write a membership script in which access to password protected areas expires after a specified period of time.
Users register and their info is save to a file. Here is an example:
username:a28eA62qa0DyA:12-16-99:ted:tedd@ted.net:945339114:2:asdf main:houston, tx aasdf
The above format is username, password, date registered, first name, email, expiration date ($expires), address, city state zip
I calculate the expiration date based on the following:
$membershiplength = 30;
$expires = time() + 86400 * $membershiplength;
My problem is writing the code that will delete the user data from the file when access has expired.
Any samples or help would be appreciated!!!!
Thanks,
Tim