Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- function getURL($url) {
- $curlHandle = curl_init(); // init curl
- curl_setopt($curlHandle, CURLOPT_URL, $url); // set the url to fetch
- curl_setopt($curlHandle, CURLOPT_HEADER, 0);
- curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($curlHandle, CURLOPT_TIMEOUT,30);
- curl_setopt($curlHandle, CURLOPT_POST, 0);
- $content = curl_exec($curlHandle);
- if(!$content){
- return 'Curl error: ' . curl_error($curlHandle);
- }
- else {
- return $content;
- }
- curl_close($curlHandle);
- }
- //Your Data Here
- $mobile=$_POST['hp'];
- $msg=$_POST['msg'];
- $user="unascos";
- $password="123456789";
- $auth=md5($user.$password.$mobile);
- $msg=urlencode($msg);
- $myurl="https://api.aksimaya.co.id/smsgateway/send?from=$user&to=$mobile&text=$msg&app_key=$auth";
- $grab = getURL($myurl);
- echo $myurl . $grab;
- //header("http://www.3mitra.com/memberarea/smssender.php?success=1");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement