a guest May 25th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- // Please, make sure if the file you choose in $file line have 777 of permissions.
- $ip = $_SERVER['REMOTE_ADDR'];
- $browser = $_SERVER['HTTP_USER_AGENT'];
- $dateTime = date('Y/m/d G:i:s');
- $file = "filename.html";
- $file = fopen($file, "a");
- $data = "<pre><b>IP</b>: $ip <b>, Browser</b>: $browser <br>on Time : $dateTime <br></pre>";
- fwrite($file, $data);
RAW Paste Data