In the answers to the question of the link below I posted how I was able to delete from the database the information of the user that does not activate within 24 hours your registration through the link sent to your email:
On my login homepage I put the
$revisa = vinte_e_quatro();
Now every time my homepage is loaded the script will run. How do you make it run only once a day, for ** week ...?
DOUBT
My function to check whether or not the user activated your registration in 24h is this:
require 'config.php';
require 'connection.php';
require 'database.php';
<?php
//Exclui linhas não ativadas em até 24h
function vinte_e_quatro () {
$tempo_agora = time();
$query = DBDrop('myway', "ativo='0' AND (data_ts + 86400) <= '$tempo_agora' ");
}
$revisa = vinte_e_quatro();
?>
Should I make a cron job for the page where I created this function and that's it? Just wait for it to run automatically ...