deep958 Posted June 14, 2017 Posted June 14, 2017 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
deep958 Posted June 14, 2017 Author Posted June 14, 2017 there is no error message and no work is performed by it . but when i execute it by my own then it works fine
Krydos Posted June 14, 2017 Posted June 14, 2017 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 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now