wright67uk Posted July 16, 2012 Share Posted July 16, 2012 I have a database of my friends birthdays, along with their email addresses. I would like to send them a message, "happy birthday" . So fine.. I can write a MySQL statement saying that if today's date is the same as my friends birthday, then send them an email. All OK so far. but how can I get a PHP script to run AUTOMATICALLY on a daily basis? Quote Link to comment https://forums.phpfreaks.com/topic/265777-how-can-i-get-a-php-script-to-run-automatically-on-a-daily-basis/ Share on other sites More sharing options...
Mahngiel Posted July 16, 2012 Share Posted July 16, 2012 cron Quote Link to comment https://forums.phpfreaks.com/topic/265777-how-can-i-get-a-php-script-to-run-automatically-on-a-daily-basis/#findComment-1361954 Share on other sites More sharing options...
Maq Posted July 16, 2012 Share Posted July 16, 2012 For linux/mac use the cron tab, or for windows you use the task scheduler. There are pretty good tutorials out there but post again if you need specific help. Quote Link to comment https://forums.phpfreaks.com/topic/265777-how-can-i-get-a-php-script-to-run-automatically-on-a-daily-basis/#findComment-1361955 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.