cron jobs
Posted: Mon Oct 28, 2013 1:46 am
Hello guys. I am new here
I have some problems with the cron jobs. I used these two lines in my (cron.txt) file:
(note: I got this syntax from the web host)
"php -f /home/user_name/public_html/cron.php"
and in my (cron.php) file:
and that cron.php file is working fine when I run in via the URL.
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?
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?