Advertisement
Aimcac

FMSG Script

Jul 31st, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2. $searchthis = "(FMSG)";
  3. $matches = array();
  4.  
  5. $handle = @fopen("mta/cit/chatlogs.txt", "r");
  6. if ($handle)
  7. {
  8.     while (!feof($handle))
  9.     {
  10.         $buffer = fgets($handle);
  11.         if(strpos($buffer, $searchthis) !== FALSE)
  12.             $matches[] = $buffer;
  13.     }
  14.     fclose($handle);
  15. }
  16.  
  17. //show fmsg chat:
  18. print_r($matches);
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement