Outputs Client IP in JSON

getIP({"ip":"8.8.8.8"});
This commit is contained in:
ke-mccormick 2017-02-26 04:13:26 -06:00 committed by GitHub
parent e87c8c861b
commit 018992cd27

4
getIP.php Normal file
View file

@ -0,0 +1,4 @@
<?php
$ip = $_SERVER['REMOTE_ADDR'];
echo "getIP({\"ip\":\"$ip\"});";
?>