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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...