in reply to Checking user's IP....
vroom, thanks for that code. I have one more question, is there a possible way to clear the log file after one day so people can vote once a day or would I have to clear it myself daily?
RE: Re: Checking user's IP....
by Anonymous Monk on Jan 23, 2000 at 13:05 UTC
|
You have several options here.
- Have the name of the file contain the date.
- Have the date as the first line of the file.
If the dates are different, remove the file.
- Have the perl script accept the poll's name
from a form hidden. Search only that file.
Of these options, I like the last one best. This will allow
you to accurately track the results of your polls. (as a
back up to the main mechanisim.) And it would allow you to
keep up past polls. And you could leave a poll up for
longer than a day.
Crulx | [reply] |
RE: Re: Checking user's IP....
by Crulx (Monk) on Jan 23, 2000 at 13:23 UTC
|
| [reply] |
|