AtomMota

error

Jun 13th, 2021
652
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. $pecahcode = json_decode(file_get_contents($output));
  21.  
  22. foreach($pecahcode as $explodehtml){
  23.    
  24.     echo $explodehtml;
  25. };
  26.  
  27.  
RAW Paste Data