Advertisement
bug7sec

Explode target

Aug 22nd, 2016
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2. $x = file_get_contents("target.txt");
  3. $x = explode("\r\n", $x);
  4. $ix = 1;
  5. foreach ($x as $key => $value) {
  6.         echo $ix."/".count($x)."\r\n";
  7.         $myfile = fopen("asu.txt", "a+") or die("Unable to open file!");
  8.         fwrite($myfile, $value.",");
  9.         fclose($myfile);
  10.         $ix++;
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement