Code run once per day

B

Bobby Edward

Is there any light-weight way of making some code run once for ONLY the
FIRST website visitor of the day and no one else?
 
G

Gregory A. Beamer

Sure, but you will have to build something that sets a "day flag" when the
new day starts that can get flipped back off when user one comes in. this is
a coding exercise, as nothing built in will do this for you.
 
B

bruce barker

of course if there are no visiters one day, you will skip a day. also as
the site will shutdown at idle, you need to persist the flag (say a
database)

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top