Log user ip address, date and time

前端 未结 5 513
别跟我提以往
别跟我提以往 2020-12-24 15:32

Is there a simple script or piece of code I can add to my page to keep a log of every visitor, the date and time they hit the page and IP address? And what would be the bes

5条回答
  •  执念已碎
    2020-12-24 16:29

     time(), 'ip' => $_SERVER['REMOTE_ADDR'], 'url' => $_SERVER['REQUEST_URI']);
    ?>
    

提交回复
热议问题