<?php
// Get Current Time
$current_time = time();
/* The time i used below (unix) for testing is
18-02-2011 14:34:24 (yesterdays date/time) */
$account_delete = strtotime(time('1298039664'));
if ($current_time - $account_delete >= (7*24*60*60)){
echo 'Account Deleted as 7 or more days old';
} else {
echo 'Account Not Deleted as less than 7 days old';
}
?>