Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ips = array();
- proc_nice(-20);
- $fp=fopen("output.txt","a");
- if ($file = fopen("parser.txt", "r")) {
- while(!feof($file)) {
- $line = fgets($file);
- if (strpos($line, ".") !== false) {
- if(!in_array($line, $ips)){
- array_push($ips, $line);
- fwrite($fp, $line);
- }
- }
- }
- fclose($file);
- }
- fclose($fp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement