开发者

Automatic mail sending with php

开发者 https://www.devze.com 2023-02-08 03:30 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消