IP.php: Add content type, charset and fix $ip

This commit is contained in:
Mikaela Suomalainen 2012-09-29 20:37:28 +02:00
parent be78cb78e5
commit 81975b8613

4
IP.php
View File

@ -1,6 +1,8 @@
<?php
$IP = getenv(REMOTE_ADDR);
header("Content-Type: text/plain; charset=utf-8");
$IP = $_SERVER['REMOTE_ADDR'];
echo "$IP";