Re: Automatically send email on special day
| From: | Liam MacKenzie | Date: | Thu, 15 Aug 2002 05:11:45 +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-112689@lists.php.net to get a copy of this message | ||
when the function excecutes, it checks the current date, then looks in a
little textfile, if it's a match, it stops the script, but if the text file
says a different date, it processes the scripts then updates the text file.
Follow me?
You could also use a MySQL database.
----- Original Message -----
From: "NoWhErEMan" <vckh@yahoo.com>
To: <php-general@lists.php.net>
Sent: Thursday, August 15, 2002 3:08 PM
Subject: Re: [PHP] Automatically send email on special day
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....
Nowhereman
"César aracena" <icaam@icaam.com.ar> ¼¶¼g©ó¶l¥ó·s»D
:001e01c24414$789a5490$e4c405c8@gateway...
Not ignored Lian. That idea is great but only if you are 100% sure that
your site is going to have at least one visitor per day. If you want to
setup a script like that in your pet's dedicated page, which maybe will
not have that many visitors at first, you will probably miss a lot of
appointments. In the other hand, if Hotmail or Yahoo want to do that...
fine... I think they WILL have at least ONE visitor per day for sure.
C.
> -----Original Message-----
> From: Liam MacKenzie [mailto:phplist@operationenigma.com]
> Sent: Thursday, August 15, 2002 1:22 AM
> To: 'NoWhErEMan'; php-general@lists.php.net
> Subject: Re: [PHP] Automatically send email on special day
>
> Hey, if you don't have access to CRON, you could try and include the
page
> in
> your index.php.
> Set it so it only runs once though, per day. That means that as soon
as
> someone visits your site they activate it for that day. It'd only
work if
> you had the traffic though.
>
> Just an idea.
>
> Then again, I'm having one of those days....
>
> Ignore me...
>
>
> ----- Original Message -----
> From: "César Aracena" <icaam@icaam.com.ar>
> To: "'NoWhErEMan'" <vckh@yahoo.com>;
> <php-general@lists.php.net>
> Sent: Thursday, August 15, 2002 2:17 PM
> Subject: RE: [PHP] Automatically send email on special day
>
>
> This have been very much discussed in this list, and the only logical
> way of doing this through PHP would be to have a script that reads the
> actual date of the server's system once a day, but that would be just
> impossible without having that script (page) reloaded at least once a
> day.
>
> I think there are two way of doing this. First, would be to setup a
cron
> job under unix (which I don't know so I'm guessing here) and second,
> which is the easiest, would be to have that script in a page with
> refreshing META tags, so it would refresh itself every 24 or 12 hours.
>
> Does this make any sense? C.
>
> > -----Original Message-----
> > From: NoWhErEMan [mailto:vckh@yahoo.com]
> > Sent: Thursday, August 15, 2002 1:03 AM
> > To: php-general@lists.php.net
> > Subject: [PHP] Automatically send email on special day
> >
> > Hi all,
> > My site maintain a list of members, which i knew their birthday, and
i
> > want
> > to send a email greeting to them on their birthday, of course,
> > automatically.
> >
> > How can i do that?
> >
> > Thanks in advance
> > Nowhereman
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php