Advertisement
Guest User

need mem limit

a guest
Apr 1st, 2013
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <?php
  2. /*********************************
  3. * * * * * * * * * * * ** * * * *
  4. *CODED BY AKASTEP **************
  5. *WWW.ANTI-armenia.ORG ***********
  6. ********************************/
  7. error_reporting(E_ALL);
  8. set_time_limit(0);
  9. ini_set('memory_limit','900M');//Memory limit set etmek lazim ola biler cox boyuk fayldirsa//
  10.  
  11.  
  12. $curdir=str_ireplace(basename(preg_replace('/\\\/i','/',realpath(__FILE__))),'',preg_replace('/\\\/i','/',realpath(__FILE__)));
  13.  
  14.  
  15. $inputfile=$curdir . 'wordlist.txt';//burada dublikatlar var.//
  16. $outputfile=$curdir . 'outputf.txt';//temiz wordlistimiz olacaq bu//
  17.  
  18.  
  19. $farray=file($inputfile,FILE_IGNORE_NEW_LINES) or die('Input Fayli Aca bilmirem!Fayl Yoxdur?');
  20.  
  21. if (is_array($farray) && (int)count($farray)!=0)
  22. {
  23. $cleen=array_unique($farray);
  24.  
  25. !isset($fs) ? $fs=NULL : '';
  26. foreach($cleen as $wrds)
  27. {
  28. $wrds=(string)$wrds;
  29. if(trim($wrds)!='') $fs.=$wrds . PHP_EOL;
  30.  
  31. }
  32. unset($wrds);
  33. file_put_contents($outputfile,$fs) or die('OUTPUT FAYLI YAZA BILMIREM!');
  34. echo 'EMELIYYAT BITDI! DUblikat||@CRLF sayi pozuldu: =>' . (int)(count($farray) - count(file($outputfile))) . PHP_EOL;
  35. exit;
  36. }
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement