File manager - Edit - /home/autoph/public_html/data03252025consolidation/app/sms/send_sms.php
Back
<?php class SMS{ public function sendSMS($contact_number, $message,$variable){ // echo $contact_number;exit(); $site_link = str_replace("https","http",$variable['site_link']); $url = $site_link.'app/sms/sms.php'; $data = array('number' => "0".$contact_number,'message' => $message); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close ($ch); // echo $server_output; // // use key 'http' even if you send the request to https://... // $options = array( // 'http' => array( // 'header' => "Content-type: application/x-www-form-urlencoded\r\n", // 'method' => 'POST', // 'content' => http_build_query($data) // ) // ); // $context = stream_context_create($options); // $result = file_get_contents($url, false, $context); // if ($result === FALSE) { /* Handle error */ } // // var_dump($result); } } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings