PHP Classes

PHP IP Address of User: Determine the IP address of the user from headers

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 34%Total: 832 All time: 4,167 This week: 146Up
Version License PHP version Categories
ip-address 1.0.1BSD License5.0Networking, HTTP, PHP 5
Description 

Author

This class can determine the IP address of the user from the request headers.

It can check the server request super-global variable to see if the user is accessing the site using a proxy.

If so, it returns the original user IP address exposed by the proxy server.

Otherwise the class returns the current remote IP address connecting to the HTTP server.

Picture of Archzilon Eshun-Davies
  Performance   Level  
Name: Archzilon Eshun-Davies is available for providing paid consulting. Contact Archzilon Eshun-Davies .
Classes: 12 packages by
Country: Ghana Ghana
Age: 37
All time rank: 6841 in Ghana Ghana
Week rank: 180 Up1 in Ghana Ghana Equal
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (1)  
File Role Description
Plain text file cIP.php Class Main class and example

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:832
This week:0
All time:4,167
This week:146Up
User Ratings User Comments (1)
 All time
Utility:58%StarStarStar
Consistency:58%StarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:34%StarStar
Rank:4158