mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2025-04-20 23:07:57 +02:00
IP.php: Add content type, charset and fix $ip
This commit is contained in:
parent
be78cb78e5
commit
81975b8613
4
IP.php
4
IP.php
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
$IP = getenv(REMOTE_ADDR);
|
||||
header("Content-Type: text/plain; charset=utf-8");
|
||||
|
||||
$IP = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
echo "$IP";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user