Is it possible to get the IP of someone who clicks a submit button? Because ATM on my image hosting site I have no way of telling who uploaded what. If so whats the php?
The views expressed on this page by users and staff are their own, not those of NamePros.
function getip()
{
global $_SERVER;
if ($_SERVER['HTTP_X_FORWARD_FOR']) //stupid proxies! :P
{
return $_SERVER['HTTP_X_FORWARD_FOR']; //get there real ip hehe
}
else
{
return $_SERVER['REMOTE_ADDR']; //they dont use a proxy :)
}
}