Re: Scheduled event
| From: | Jon Farmer | Date: | Fri, 12 Oct 2001 11:16:39 +0000 |
| Subject: | Re: Scheduled event | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70913@lists.php.net to get a copy of this message | ||
> 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?
Compile PHP as a binary and write a shell script and cron it. If you cant do
that write a php page and call it with lynx in a cronjob and direct output
to /dev/null
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send blank email to pgpkey@bctech.co.uk