if last_email_date != today { send email last_email_date = today }
Happy hacking. Chris NoWhErEMan wrote: >I can ensure ar least one visitor per day, that;s me!! >Since my server in on my local windows mechine, i can load the page at start >up. >But i have a question, how can i ensure the script only runs once though, >per day? >I think it is related to coding >Say, my index.php have a script to check current day and send the email if >birthday. >However, when more than one visitor on index.php, it will send duplicated >email.... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php