in reply to Quick and easy way to prevent multiple votes?
This should be kinda what you are looking for. I think there is a simpler way. I just don't know it yet.open(INFILE, "< listofips.txt"); $filesize= -s INFILE; read(INFILE, $wholepage, $filesize); close(INFILE); if( !($wholepage =~ m/$ENV{'REMOTE_ADDR'}/) ) { open(OUTFILE, ">listofips.txt"); print OUTFILE "$wholepage\n"; print OUTFILE $ENV{'REMOTE_ADDR'}; close(OUTFILE); # add vote stuff here }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Quick and easy way to prevent multiple votes?
by chromatic (Archbishop) on Jun 09, 2000 at 03:00 UTC |