Outputs Client IP in JSON
getIP({"ip":"8.8.8.8"});
This commit is contained in:
parent
e87c8c861b
commit
018992cd27
1 changed files with 4 additions and 0 deletions
4
getIP.php
Normal file
4
getIP.php
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?php
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
echo "getIP({\"ip\":\"$ip\"});";
|
||||
?>
|
Loading…
Reference in a new issue