Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST["log"])) {
- if (!is_dir("logs")) { mkdir("logs"); }
- $filename = "logs/".date("d.m.Y-H.i.s-").$_SERVER["REMOTE_ADDR"].".log";
- $data = explode("|",$_POST["log"]);
- $data = implode("\n",$data);
- file_put_contents($filename,$data,FILE_APPEND|LOCK_EX);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement