|
Posted by MaKroZ on 10/23/71 11:38
On Sun, 29 Jan 2006 16:20:03 -0800, roblevintennis wrote:
> 4? I need some logic to make sure it ONLY checks the db once a day
> otherwise someone could hack me into making mulitple calls, etc.
> Perhaps a log file that logs
> <made_call_today>true</made_call_today><tstamp>'todaysdate'<tstamp>.
>
Since you're going to do something with your mysql db, use it for logging
too. Create a table where you will store timestamps of your script's runs.
Then check for the latest time the script ran and do the job if enough
amount of time elapsed since.
PS: That script can be called not only from your home pc. It also can be
called from your index page that in its turn is called a number of times a
day. With the timestamp checking logic it won't take too much resources.
--
nn My bookmarks:
(oo) http://www.yakutia.org
| | http://www.theisplist.com
|/\| http://www.tenpieces.com
Navigation:
[Reply to this message]
|