Last active
March 30, 2016 19:44
-
-
Save FreeFly19/8c7537634b3196fad0c224984ff907f9 to your computer and use it in GitHub Desktop.
Masha hazker
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 | |
//*************** | |
//тут багато коду | |
//*************** | |
page_footer(); | |
$date = date("Y-m-d H:i:s"); | |
$userIp = $_SERVER['REMOTE_ADDR']; | |
$lastLineInFile = "[$date] $userIp\r\n"; | |
$file = fopen("file.txt", "a+"); | |
fwrite($file, $lastLineInFile); | |
fclose($file); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment