Re: Scheduled event
| From: | Andrey Hristov | Date: | Fri, 12 Oct 2001 11:16:38 +0000 |
| Subject: | Re: Scheduled event | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70914@lists.php.net to get a copy of this message | ||
Write little script which selects who has birtday today. Then setup crontab
with "#crontab -e" add:
0 8 * * * /path/to/script/birth.php
birth.php:
#!/usr/bin/php -q
<?php
...
...
?>
Be careful if you write your script on windows and upload to *nix. If this is
the case use a text editor( i prefer "joe") on the server and remove windows
new lines(#13#10) to the *nix format.
--
Andrey Hristov
Web Developer
IcyGEN Corporation
BALANCED SOLUTIONS
http://www.icygen.com
On Friday 12 October 2001 14:02, you wrote:
> Hello...
>
> I've set up a members database, and I want to make a useless function that
> sends out email to people when they have their birthdays. For example: My
> birthday is feb 20th. So at precisely 8am that day, an email is sent out to
> congratulate me.
>
> Anyone know how to make this work in PHP? I am guessing I might have to
> make use of something other than php as well, eh?
>
> Sincerely,
> Torkil