Automatic mail sending with php
I need to check once a day my database
for old files uploaded by my clients, and开发者_运维技巧 remind them by email
if their files are old than x day.
Do you have any ideas ?
Thanks
A cronjob is just calls a call to a script on a given time. You will need server access, Plesk or some control panel to set them.
If you've never done cron jobs before try doing some example ones first, like adding data to a table every 30 minutes, or creating new txt or log files.
Then when you learnt cron jobs properly, like, the ubication of the files, file's permits, etc, create the cron with your job.
the thing is that if you setup your cron job daily, withouth perfectly knowing how is that done, then you would have to wait a lot to see if it's working.
Also, run the files you are croning and make sure they behave as you expect, maybe there's a syntax error or something, so when the cron calls it, it fails and that's why it seems not to work.
精彩评论