2
In the answers to question of the link below I posted how I managed to delete from the database the user information that not activate in up to 24h your registration through the link sent to your email:
How to delete the database registration if the user does not activate it by email within "X" hours?
On my login homepage I put the function
$revisa = vinte_e_quatro();
Now every time my homepage is loaded the script will run. How to make it run only once a day, for **week...?
DOUBT
My function to check whether or not the user activated his 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 do a cron job for the page where I created this function and that’s it? Just wait for it to turn automatically...
Cron job is the best alternative to this.
– Fábio Lemos Elizandro
I just read here, it’s what I really need, but I have to see how to apply.
– I Wanna Know
It will depend on where you are staying
– Fábio Lemos Elizandro
I used as much with my domain as only the file name: www.meusite.com.br/vinte_e_quatro.php or vinte_e_quatro.php and I couldn’t, it arrives at the scheduled time and the function doesn’t run unless I access the link in the browser. Look at the manager: goo.Gl/Wkkicp
– I Wanna Know