Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $name_file = "ticino/extra/comuni.txt";
- $file = fopen($_SERVER['DOCUMENT_ROOT'] . "/" . $name_file, "r");
- $comuni = explode("\n", fread($file, filesize($_SERVER['DOCUMENT_ROOT'] . "/" . $name_file)));
- //$comuniString = implode("\n", $comuni);
- //$distretto = $righe[];
- $mul = 0;
- while ($mul <= 129) {
- $test_comuni = $comuni[$mul];
- $comuniString = implode(" ", $test_comuni);
- if (strripos($message_text, $comuniString) !== false) {
- apiRequest("sendMessage", array(
- //'chat_id' => "-1001097947626",
- 'chat_id' => $chat_id,
- "text" => "esiste"
- ));
- }
- $mul++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement