Posted by Arthur Wiebe on 06/25/05 21:55
vlad georgescu wrote:
> i want to make a "reminder" application which sends emails at certain hour
> in php. is this posibile ? if not, what else can I use ?
>
I've done it using pure PHP for a calendar script.
What I did was write a PHP script with a loop that checks every second
whether or not something should be done. For example:
<?php
$t = true;
while ($t) {
if (time() == $myTimeStamp) {
mail(args);
}
}
?>
at the top of the script I have a line like this:
#!/usr/bin/env php
for *nixs' and I wrote a little batch file for Windows systems.
At least it works.
Navigation:
[Reply to this message]
|