Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (398)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
How to get users’ IP Address with PHP
Useful PHP Code Snippets for Developers - How to get users’ IP Address with PHP
✍: Guest
function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy { $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR']; } return $ip; }
2015-06-19, 1118🔥, 0💬
Popular Posts:
How to turn on debug messages in log file in FileZilla FTP Client? I want to know more about how Fil...
How to Uninstall Skype Meetings App on Windows? I don't need it anymore. You can following this tuto...
What is this Website about? This Website provides a collection of Frequently Asked Questions (FAQ) a...
Why I am getting the "Account Frozen" message when login to OneDrive? If you have not used your free...
How to add a hyperlink to connect a keyword to another slide in PowerPoint? I want to have clickable...