Jump to content

Recommended Posts

Posted

i make my cron job file in php code and upload it . but it doesnt work

my cron job file is this :

 

 

<?php
$con=mysqli_connect("localhost","name","pass");
mysqli_select_db($con,"table");
$t=time();
$a=mysqli_query($con,"select * from signup");
$anum=mysqli_num_rows($a);
for($i=1;$i<=$anum;$i++)
{
$arow=mysqli_fetch_array($a);
$avalid=$arow['valid'];
$email=$arow['email'];
if($avalid<$t)
{
mysqli_query($con,"delete from signup where email='$email'");
}
}
?>

 

 

 

plz help me to solve my problem

Posted

I talked to him on IRC chat and his command was

/home/deep958/public_html/cron.php
which doesn't do anything because it needs to be something like

php /home/deep958/public_html/cron.php
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...