I want to get an ip address of visitors. could you tell me what element of $_SERVER[] i should use?
$_SERVER[]
$_SERVER[\'HTTP_CLIENT_IP\']; $_SERVER[\'HTT
It depends on if your application is behind a reverse proxy or something like that. The easiest thing to do is check all three and choose the one that is not one of your IPs.