Code run once per day

  • Thread starter Thread starter Bobby Edward
  • Start date Start date
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?
 
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.

--
Gregory A. Beamer
MVP: MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think Outside the Box! |
********************************************
 
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)
 
Back
Top