Thanks for your help.
sorry that should have read
Unfortunately PHP was not built with IPv6 support enabled.
I am reading the ftp.arin.net/pub/stats/arin/ to get the ip addresses for a program I am writing most of them are in a form I can deal with and change to a double value I need for look up purposes. But not the ipv6 values, I was wondering is someone browsing a site is likely to have an ipv6 address and if so will the following return an ipv6 address
if (getenv("HTTP_CLIENT_IP"))
{
$ip = getenv("HTTP_CLIENT_IP");
}
elseif (getenv('HTTP_X_FORWARDED_FOR'))
{
$ip = getenv("HTTP_X_FORWARDED_FOR");
}
elseif(getenv("REMOTE_ADDR"))
{
$ip = getenv("REMOTE_ADDR");
}
else
{
$ip = "";
}