Sfoglia il codice sorgente

Merge pull request #19 from ke-mccormick/patch-1

Outputs Client IP in JSON (Requires PHP server)
Federico Dossena 9 anni fa
parent
commit
0e83593adb
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      getIP.php

+ 4 - 0
getIP.php

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