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? 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 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. 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
Archived
This topic is now archived and is closed to further replies.