tobitaz

jawi.php

Jun 14th, 2021
502
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $ch = curl_init();
  4. curl_setopt($ch, CURLOPT_URL, "https://www.ejawi.net/v3/promos.php");
  5. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  6. curl_setopt($ch, CURLOPT_POST, true);
  7.  
  8. $rumi = "Selamat";
  9.  
  10. $data = array(
  11.     'ayat' => $rumi,
  12.     'Submit' => 'Tukar kepada Jawi'
  13.    
  14. );
  15.  
  16. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  17. $output = curl_exec($ch);
  18. curl_close($ch);
  19.  
  20.  
  21. preg_match('/<textarea class="textarea2">(.*?)<\/textarea>/s',$output,$pecah);
  22.  
  23. echo $pecah[1];
  24.  
  25.  
  26. ?>
RAW Paste Data