Re: [PHP] Automatically send email on special day

2002-08-15 Thread David Buerer

Hey guys, you're all making this too dificult.

Windows NT, Windows 2000, Windows XP, and even Window 98 all have a built in
schedule utility.  On NT, it's accessed via the AT command. In order to use
it, the Scheduler system service must be installed.

Once it's installed, tell it to call the PHP executable with the script
which sends the emails as the first paramter.  For example, on widnow NT you
could schedule the following:

AT 06:00 /every:M,T,W,Th,F,Sa,Su c:\myscripts\gobirthday.bat

The contents of gobirthday.bat would be only one line,
c:\php\php.exe c:\myscripts\gobirthday.php

then every day at 6:00am the batch file gobirthday.bat would be ran which
executes the gobirthday.php script.  now it doesn't matter whehter you have
visitors at all to your site. Every morning the birthday emails will get
sent.

David


- Original Message -
From: Liam MacKenzie [EMAIL PROTECTED]
To: NoWhErEMan [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 10:11 PM
Subject: Re: [PHP] Automatically send email on special day


 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 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 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 [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D
 :001e01c24414$789a5490$[EMAIL PROTECTED]
 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:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 1:22 AM
  To: 'NoWhErEMan'; [EMAIL PROTECTED]
  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 [EMAIL PROTECTED]
  To: 'NoWhErEMan' [EMAIL PROTECTED]; [EMAIL PROTECTED]
  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:[EMAIL PROTECTED]]
   Sent: Thursday, August 15, 2002 1:03 AM
   To: [EMAIL PROTECTED]
   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






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





-- 
PHP General

RE: [PHP] Automatically send email on special day

2002-08-15 Thread Jay Blanchard

Whay not just set up a page that lists today's birthdays and a button that
sends e-mail greetings. You can place this page in a secure directory so
everyone who visits can get to it and click the button.

a. create page and script
b. place in secure directory
c. log in each day
d. click button

HTH!

Jay

I need somebody really bad…are you really bad?

***
* Texas PHP Developers Conf  Spring 2003  *
* T Bar M Resort  Conference Center  *
* New Braunfels, Texas*
* San Antonio Area PHP Developers Group   *
* Interested? Contact [EMAIL PROTECTED] *
***



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




RE: [PHP] Automatically send email on special day

2002-08-15 Thread César Aracena

David. This is for you to note, as well as most of the people of this
list who think that ALL OF US use own our computers as Internet Servers,
being able to make CRON jobs or scheduling... well, WE DON'T. Some of us
don't even has cable modem or steady connection and need to build up web
sites trough a Dial Up connection and using a remote server... that's
way there are some of us who are trying to solve these kind of problems
through the scripts themselves and skip the server-side part...

I'm tired of watching replies like just make a CRON job or set up a
scheduled task so from now on, I will be including no server reach or
something like that into all my messages and suggest that all the people
who's also in my situation to do the same, so others don't forget it...
please don't take me wrong, I just want to avoid large amounts of
unusable messages.

Hope you understand, C.

 -Original Message-
 From: David Buerer [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 3:26 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Automatically send email on special day
 
 Hey guys, you're all making this too dificult.
 
 Windows NT, Windows 2000, Windows XP, and even Window 98 all have a
built
 in
 schedule utility.  On NT, it's accessed via the AT command. In order
to
 use
 it, the Scheduler system service must be installed.
 
 Once it's installed, tell it to call the PHP executable with the
script
 which sends the emails as the first paramter.  For example, on widnow
NT
 you
 could schedule the following:
 
 AT 06:00 /every:M,T,W,Th,F,Sa,Su c:\myscripts\gobirthday.bat
 
 The contents of gobirthday.bat would be only one line,
 c:\php\php.exe c:\myscripts\gobirthday.php
 
 then every day at 6:00am the batch file gobirthday.bat would be ran
which
 executes the gobirthday.php script.  now it doesn't matter whehter you
 have
 visitors at all to your site. Every morning the birthday emails will
get
 sent.
 
 David
 
 
 - Original Message -
 From: Liam MacKenzie [EMAIL PROTECTED]
 To: NoWhErEMan [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Wednesday, August 14, 2002 10:11 PM
 Subject: Re: [PHP] Automatically send email on special day
 
 
  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 [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  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 [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D
  :001e01c24414$789a5490$[EMAIL PROTECTED]
  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:[EMAIL PROTECTED]]
   Sent: Thursday, August 15, 2002 1:22 AM
   To: 'NoWhErEMan'; [EMAIL PROTECTED]
   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 [EMAIL PROTECTED]
   To: 'NoWhErEMan' [EMAIL PROTECTED]; [EMAIL PROTECTED]
   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

RE: [PHP] Automatically send email on special day

2002-08-15 Thread David Buerer

Sorry if my reply set you off. It was late. I might have said something
stupid.  I was tired. I should have gone to bed and ignored it.  You're
right though, it's pretty important to say I don't have full access to my
web server in your message when you don't.  I guess I was keying off of
NoWhErMan's statment Since my server in on my local windows machine which
I interpreted to mean that he had control of the the machine.  Maybe I was
wrong.

DAvid

-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 6:29 AM
To: 'David Buerer'; [EMAIL PROTECTED]
Subject: RE: [PHP] Automatically send email on special day


David. This is for you to note, as well as most of the people of this
list who think that ALL OF US use own our computers as Internet Servers,
being able to make CRON jobs or scheduling... well, WE DON'T. Some of us
don't even has cable modem or steady connection and need to build up web
sites trough a Dial Up connection and using a remote server... that's
way there are some of us who are trying to solve these kind of problems
through the scripts themselves and skip the server-side part...

I'm tired of watching replies like just make a CRON job or set up a
scheduled task so from now on, I will be including no server reach or
something like that into all my messages and suggest that all the people
who's also in my situation to do the same, so others don't forget it...
please don't take me wrong, I just want to avoid large amounts of
unusable messages.

Hope you understand, C.

 -Original Message-
 From: David Buerer [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 3:26 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Automatically send email on special day
 
 Hey guys, you're all making this too dificult.
 
 Windows NT, Windows 2000, Windows XP, and even Window 98 all have a
built
 in
 schedule utility.  On NT, it's accessed via the AT command. In order
to
 use
 it, the Scheduler system service must be installed.
 
 Once it's installed, tell it to call the PHP executable with the
script
 which sends the emails as the first paramter.  For example, on widnow
NT
 you
 could schedule the following:
 
 AT 06:00 /every:M,T,W,Th,F,Sa,Su c:\myscripts\gobirthday.bat
 
 The contents of gobirthday.bat would be only one line,
 c:\php\php.exe c:\myscripts\gobirthday.php
 
 then every day at 6:00am the batch file gobirthday.bat would be ran
which
 executes the gobirthday.php script.  now it doesn't matter whehter you
 have
 visitors at all to your site. Every morning the birthday emails will
get
 sent.
 
 David
 
 
 - Original Message -
 From: Liam MacKenzie [EMAIL PROTECTED]
 To: NoWhErEMan [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Wednesday, August 14, 2002 10:11 PM
 Subject: Re: [PHP] Automatically send email on special day
 
 
  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 [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  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 [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D
  :001e01c24414$789a5490$[EMAIL PROTECTED]
  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:[EMAIL PROTECTED]]
   Sent: Thursday, August 15, 2002 1:22 AM
   To: 'NoWhErEMan'; [EMAIL PROTECTED]
   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

Re: [PHP] Automatically send email on special day

2002-08-15 Thread Jason Wong

On Thursday 15 August 2002 21:28, César Aracena wrote:

[snip]

 I'm tired of watching replies like just make a CRON job or set up a
 scheduled task so from now on, I will be including no server reach or
 something like that into all my messages and suggest that all the people
 who's also in my situation to do the same, so others don't forget it...
 please don't take me wrong, I just want to avoid large amounts of
 unusable messages.

That's a step in the right direction. The responsibility is on the person 
asking a question to provide as much info as possible about the server and 
the environment that they're using. 

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Collapsed Backbone
*/


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




RE: [PHP] Automatically send email on special day

2002-08-14 Thread César Aracena

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:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 1:03 AM
 To: [EMAIL PROTECTED]
 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




Re: [PHP] Automatically send email on special day

2002-08-14 Thread Liam MacKenzie

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 [EMAIL PROTECTED]
To: 'NoWhErEMan' [EMAIL PROTECTED]; [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 1:03 AM
 To: [EMAIL PROTECTED]
 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




RE: [PHP] Automatically send email on special day

2002-08-14 Thread César Aracena

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:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 1:22 AM
 To: 'NoWhErEMan'; [EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
 To: 'NoWhErEMan' [EMAIL PROTECTED]; [EMAIL PROTECTED]
 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:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 1:03 AM
  To: [EMAIL PROTECTED]
  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




Re: [PHP] Automatically send email on special day

2002-08-14 Thread NoWhErEMan

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 [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D
:001e01c24414$789a5490$[EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 1:22 AM
 To: 'NoWhErEMan'; [EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
 To: 'NoWhErEMan' [EMAIL PROTECTED]; [EMAIL PROTECTED]
 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:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 1:03 AM
  To: [EMAIL PROTECTED]
  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




Re: [PHP] Automatically send email on special day

2002-08-14 Thread Liam MacKenzie

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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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 [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D
:001e01c24414$789a5490$[EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 1:22 AM
 To: 'NoWhErEMan'; [EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
 To: 'NoWhErEMan' [EMAIL PROTECTED]; [EMAIL PROTECTED]
 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:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 1:03 AM
  To: [EMAIL PROTECTED]
  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






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




Re: [PHP] Automatically send email on special day

2002-08-14 Thread Chris Shiflett

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