Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Opdater passwords fra tekstfil
- $new_password = "bob123";
- $file = fopen("s.txt", "r");
- if($file){
- while(($line = fgets($file)) !== false)
- {
- $split = explode(",", $line);
- echo $split[0] . "," . $new_password;
- echo "<br>";
- }
- }else{
- echo "Filen blev ikke fundet";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement