这是我的代码:
if (getenv(HTTP_X_FORWARDED_FOR))
{
$pipaddress = getenv(HTTP_X_FORWARDED_FOR);
$ipaddress = getenv(REMOTE_ADDR);
}
else
{
$ipaddress = getenv(REMOTE_ADDR);
}
我收到此错误:
use of undefined constant http_x_forwarded_for-assumed http_x_forwarded_for
我没有得到实际的问题。帮帮我