How to use crontab for sending weekly email in php? [closed]
i am new to php... and i dont know how to use crontab widget..can anybody explain me...how to send weekly emails...
This will run a job weekly:
0 0 * * 0 /path/to/php yourscript.php
Nice intro to cron and crontab.
TO your problem there is 2 step solution
Create cron tab using
crontab -e
command, add a following line to your cron:0 0 * * 0 php your/php/script/path/email_script.php
Create a Email script and write yor email functions here.
Note: If you are including a file in your script make sure that you give full path "/var/www/"
精彩评论