简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM