Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. $ips = array();
  2. proc_nice(-20);
  3. $fp=fopen("output.txt","a");
  4.  
  5.  
  6. if ($file = fopen("parser.txt", "r")) {
  7.     while(!feof($file)) {
  8.         $line = fgets($file);
  9.         if (strpos($line, ".") !== false) {
  10.             if(!in_array($line, $ips)){
  11.                 array_push($ips, $line);
  12.                 fwrite($fp, $line);
  13.             }
  14.         }
  15.     }
  16.     fclose($file);
  17. }
  18. fclose($fp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement