how would one go about making scripts that run in the background?
for example, if a user has not logged in for 2 weeks, the account deletes without me having to manually do anything (other then write the code of for it to delete, of course)
[code=php] <?php // Now do whatever you want mysql_query("DELETE * FROM tbl WHERE logintime<123456 "); // Make login $login = mysql_escape_string($_GET['login']); $login = mysql_escape_string($_GET['pass']); $q = mysql_query("SELECT id FROM tbl WHERE login='".$login."' AND pass='".$pass."'"); if(mysql_num_rows($q==1)) { $_SESSION['id'] = mysql_result($q,0,0); echo "Hello Johny"; } else echo "hacker? he he.." [/code]
tbl
logintime
id
login
pass
Help @ixxalnxxi spread the word by sharing this article on Twitter...