SHARE
TWEET

Untitled

a guest May 25th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Please, make sure if the file you choose in $file line have 777 of permissions.
  3.  
  4. $ip = $_SERVER['REMOTE_ADDR'];
  5. $browser = $_SERVER['HTTP_USER_AGENT'];
  6. $dateTime = date('Y/m/d G:i:s');
  7. $file = "filename.html";
  8. $file = fopen($file, "a");
  9. $data = "<pre><b>IP</b>: $ip <b>, Browser</b>: $browser <br>on Time : $dateTime <br></pre>";
  10. fwrite($file, $data);
  11. fclose($file);
  12. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top