Advertisement
GigilinE

Untitled

Mar 18th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. $name_file = "ticino/extra/comuni.txt";
  2. $file = fopen($_SERVER['DOCUMENT_ROOT'] . "/" . $name_file, "r");
  3. $comuni = explode("\n", fread($file, filesize($_SERVER['DOCUMENT_ROOT'] . "/" . $name_file)));
  4. //$comuniString = implode("\n", $comuni);
  5. //$distretto = $righe[];
  6. $mul = 0;
  7. while ($mul <= 129) {
  8. $test_comuni = $comuni[$mul];
  9. $comuniString = implode(" ", $test_comuni);
  10. if (strripos($message_text, $comuniString) !== false) {
  11. apiRequest("sendMessage", array(
  12. //'chat_id' => "-1001097947626",
  13. 'chat_id' => $chat_id,
  14. "text" => "esiste"
  15. ));
  16. }
  17. $mul++;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement