fork download
  1. <?php
  2. $curl = curl_init();
  3. CURLOPT_URL => 'https://r...content-available-to-author-only...d.com:8443/bulksms/bulksms?username=EXTR-logxtrans1&password=Logx123%25&type=0&dlr=1&destination=971586800633&source=LOGX&message=Dear%20Client%20Your%20Sharethelove%20package%20bag%20has%20been%20delivered%20to%20your%20location.%20For%20feedback%20please%20call%20or%20WhatsApp%20+971567109394.%20Thanks%20LOGX',
  4. CURLOPT_RETURNTRANSFER => true,
  5. CURLOPT_ENCODING => '',
  6. CURLOPT_MAXREDIRS => 10,
  7. CURLOPT_TIMEOUT => 0,
  8. CURLOPT_FOLLOWLOCATION => true,
  9. CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  10. CURLOPT_CUSTOMREQUEST => 'GET',
  11. ));
  12.  
  13. $response = curl_exec($curl);
  14. $err = curl_error($curl);
  15. curl_close($curl);
  16.  
  17. print_r($response);
  18.  
  19. // Only returning message ID
  20. $count = substr_count($response, '|');
  21.  
  22. if ($count > 1) {
  23. $lastDelimiterPos = strrpos($response, '|');
  24. $new_response = substr($response, $lastDelimiterPos + 1);
  25. echo $new_response;
  26. } else {
  27. //echo 'dddd';
  28.  
  29. }
  30. ?>
  31.  
Success #stdin #stdout 0.03s 26056KB
stdin
Standard input is empty
stdout
Standard output is empty