Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

README

A couple simple PHP scritps for getting a client's IP address.

Version 1

Simply:

$ip = $_SERVER['REMOTE_ADDR']

Version 2

$http_client_ip = $_SERVER['HTTP_CLIENT_IP'];             //Internet ip address
$http_x_forwarded_for = $_SERVER['HTTP_X_FORWARDED_FOR']; //checking for proxy server
$remote_addr = $_SERVER['REMOTE_ADDR']; 

About

get the IP of a connecting client

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.