Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-03-03 (7 months ago) RSS 2.0 feedStarStar 30%Total: 770 All time: 4,031 This week: 1,470Up
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
Name: Archzilon Eshun-Davies is available for providing paid consulting. Contact Archzilon Eshun-Davies .
Classes: 12 packages by
Country: Ghana Ghana
Age: 28
All time rank: 7011 in Ghana Ghana
Week rank: 756 Down3 in Ghana Ghana Down
Innovation award
Innovation award
Nominee: 1x

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

 Version Control Unique User Downloads Download Rankings  
 0%Total:770All time:4,031
 This week:0This week:1,470Up
User Ratings User Comments (1)  
 All time
Utility:50%StarStarStar
Consistency:50%StarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:30%StarStar
Rank:2365