B Bobby Edward Jan 13, 2009 #1 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?
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 Jan 13, 2009 #2 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! | ********************************************
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! | ********************************************
B bruce barker Jan 14, 2009 #3 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)
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)