Can somebody provide me with the code needed to get a visitors
ip adress and store it as a variable?
i am programming a voting script for my site and i want to append
the voters ip address to a text file to prevent multiple votes
from the same ip address.
so when they vote it will see if their ip address is already in the log
and prevent them from voting more than once unless they change
their i.p.
it is just a hobby site so it doesn’t have to be completely airtight
with regards to voting accuracy.
i know how to keep track of the ip’s and that other stuff, i just
need to know how i can get the visitors ip so i can pass it to
the voting script to test it before registering a new vote.
thanks a bunch,
bsmbahamas.