Created
August 26, 2014 15:02
-
-
Save kashwaa/66e648bff98add3daa9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class IP | |
{ | |
public $value; | |
public $lastupdate; | |
function IP() | |
{ | |
$this->value=$_SERVER['REMOTE_ADDR'];; | |
$this->lastupdate=new DateTime(); | |
} | |
} | |
$ip=new IP(); | |
file_put_contents("ip.json", json_encode($ip)); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment