Advertisement
Guest User

xxx

a guest
Jul 25th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <?
  2. function getURL($url) {
  3. $curlHandle = curl_init(); // init curl
  4. curl_setopt($curlHandle, CURLOPT_URL, $url); // set the url to fetch
  5. curl_setopt($curlHandle, CURLOPT_HEADER, 0);
  6. curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);
  7. curl_setopt($curlHandle, CURLOPT_TIMEOUT,30);
  8. curl_setopt($curlHandle, CURLOPT_POST, 0);
  9. $content = curl_exec($curlHandle);
  10. if(!$content){
  11. return 'Curl error: ' . curl_error($curlHandle);
  12. }
  13. else {
  14. return $content;
  15. }
  16. curl_close($curlHandle);
  17. }
  18. //Your Data Here
  19. $mobile=$_POST['hp'];
  20. $msg=$_POST['msg'];
  21. $user="unascos";
  22. $password="123456789";
  23. $auth=md5($user.$password.$mobile);
  24. $msg=urlencode($msg);
  25. $myurl="https://api.aksimaya.co.id/smsgateway/send?from=$user&to=$mobile&text=$msg&app_key=$auth";
  26. $grab = getURL($myurl);
  27. echo $myurl . $grab;
  28. //header("http://www.3mitra.com/memberarea/smssender.php?success=1");
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement