Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Opdater passwords fra tekstfil
  3. $new_password = "bob123";
  4. $file = fopen("s.txt", "r");
  5. if($file){
  6.     while(($line = fgets($file)) !== false)
  7.     {
  8.         echo explode(",", $line)[0] . "," . $new_password . "<br>";
  9.     }
  10. }else{
  11.     echo "Filen blev ikke fundet";
  12. }
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement