I have some problems with the cron jobs. I used these two lines in my (cron.txt) file:
Code: Select all
MAILTO=myemail@gmail.com
1 0 * * * * php -f /home/my_user_name/public_html/cron.php"php -f /home/user_name/public_html/cron.php"
and in my (cron.php) file:
Code: Select all
<?php
$to= "myemail@gmail.com";
$subject = "Cron Job Status";
$from = "myemail@gmail.com";
$message = "The cron job is working fine.";
mail($to,$subject,$from, $message);
?>but it's not working although the permissions for both files are rwxr-xr-x
I also used the cron jobs function from the web host service, but still did not work..
any suggestion?