これが私のコードです:
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
私は実際の問題を知りません。手伝ってください