Ash wrote:
I have an email list from an affiliate that I can only send to between
10 PM and 4 AM. Is there a way to code it so that it only sends out
during that time?
I know how to start it from cron, but how do I stop it? And, I'd rather
do it all in the same script if possible.
I'm using php CLI for this.
Add something like this into your script.
<?php
$time = localtime();
$hour = $time[2];
if (4 < $hour && $hour < 22) exit;
?>
--lonnie
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net