I have a php script that i use to send mail to customers. How can i execute this script every 5 days for example? Can anyone give me an idea or some links?
Thanks
I have a php script that i use to send mail to customers. How
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have a database underneath, you could store the date of the last mail in the database. The script then checks, what the last date in your database is. If this is more than n days in the past it sends a new mail and overwrites the date in the database with the current date.
Alternatively you could simply use Cron-jobs.