I need code to run once a day (no cron service available) - when the first
visitor of the day hits my site would be fine.
What I have in mind is a Boolean function that identifies day boundaries
with time() - if I can identify individual day boundaries with time(), then
I should be able to identify the first visit of the day - whether it be
12:01am or 1159pm. I assume I'd need to store some value that indicates
whether or not the $first_today function has run - I suppose I could write
this to a file. So, it would look something like this:
if ($first_today)
{
do stuff;
}
Has anyone done this before? Other suggestions? (yes, I know, get another
host...)
Thanks in advance.