Here's a bit of example code (which I found
here<http://board.phpbuilder.com/showthread.php?10327697-how-to-get-client-s-IP-address-in-PHP&s=4cc1901410edf4b7b795d301126c8ea9&p=10748983&viewfull=1#post10748983>)
that locates the client's IP address:
<?php
echo ' Client IP: ';
if ( isset($_SERVER["REMOTE_ADDR"]) ) {
echo '' . $_SERVER["REMOTE_ADDR"] . ' ';
} else if ( isset($_SERVER["HTTP_X_FORWARDED_FOR"]) ) {
echo '' . $_SERVER["HTTP_X_FORWARDED_FOR"] . ' ';
} else if ( isset($_SERVER["HTTP_CLIENT_IP"]) ) {
echo '' . $_SERVER["HTTP_CLIENT_IP"] . ' ';
}
?>
You can store the client's IP in a database, and check each submission to
make sure there are no duplicates.
On Sunday, December 23, 2012 12:20:12 AM UTC-5, Chrystopher Medina wrote:
>
> ok thanks my friend im gonna try whit them... thanks my friend thanks a
> lot ..... hey my friend there is something in order to answer just one
> survey per IP
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/4RXjnyWK7AoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.