Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $searchthis = "(FMSG)";
- $matches = array();
- $handle = @fopen("mta/cit/chatlogs.txt", "r");
- if ($handle)
- {
- while (!feof($handle))
- {
- $buffer = fgets($handle);
- if(strpos($buffer, $searchthis) !== FALSE)
- $matches[] = $buffer;
- }
- fclose($handle);
- }
- //show fmsg chat:
- print_r($matches);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement