Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $login = $_POST['login'];
- $pass = $_POST['pass'];
- echo $login."<br>";
- echo $pass."<br>";
- $arr = array (
- "login"=>"$login",
- "pass"=>"$pass");
- file_put_contents('hey.txt', $arr);
- $content = file_get_contents('hey.txt');
- echo "<br>Reading lines from txt file:<br>";
- $get_content = file('hey.txt');
- foreach ($get_content as $key => $value) {
- echo($key . " " . $value . "<br>");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement