if last_email_date != today
     send email
     last_email_date = today

Happy hacking.


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
>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
>However, when more than one visitor on index.php, it will send duplicated

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to