Note Submitter: J. Ide
----
Slight improvements to the IP-deduction code posted on 16-Nov-2007 01:44 that was based on dlyaza's code (22-Oct-2006 12:33):
<?php
/**
* Returns the IP address of the client that made the HTTP
* request. On failure, FALSE is returned.
*/
function getClientIPAddress()
{
($ip = $_SERVER['HTTP_CLIENT_IP']) ||
($ip = $_SERVER['HTTP_X_FORWARDED_FOR']) ||
($ip = $_SERVER['HTTP_X_FORWARDED']) ||
($ip = $_SERVER['HTTP_FORWARDED_FOR']) ||
($ip = $_SERVER['HTTP_FORWARDED']) ||
($ip = $_SERVER['REMOTE_ADDR']);
return $ip ? $ip : false;
}
?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.