Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Checking user's IP....

by Anonymous Monk
on Jan 23, 2000 at 11:54 UTC ( #2364=note: print w/replies, xml ) Need Help??


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?

Replies are listed 'Best First'.
RE: Re: Checking user's IP....
by Anonymous Monk on Jan 23, 2000 at 13:05 UTC
    You have several options here.
    1. Have the name of the file contain the date.
    2. Have the date as the first line of the file. If the dates are different, remove the file.
    3. 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

RE: Re: Checking user's IP....
by Crulx (Monk) on Jan 23, 2000 at 13:23 UTC
    Damn cookies. *giggle*

    You have several options here.

    1. Have the name of the file contain the date.
    2. Have the date as the first line of the file. If the dates are different, remove the file.
    3. 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://2364]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2022-12-07 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?