Re: Automatically send email on special day

From: Date: Thu, 15 Aug 2002 05:14:10 +0000
Subject: Re: Automatically send email on special day
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-112691@lists.php.net to get a copy of this message
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....


« previous php.general (#112691) next »