| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2bzend/cronjob/ |
Upload File : |
<?php
$message = 'Hi Prashant,\n\nUse 123456 as OTP to verify your mobile number 9015562063. Do not share this OTP with anyone.\n\nThanks,\nMTIFLIGHT\nTRVCRM';
$messageP = 'Hi Prashant,<br><br>Use 123456 as OTP to verify your mobile number 9015562063. Do not share this OTP with anyone.<br><br>Thanks,<br>MTIFLIGHT<br>TRVCRM';
$prepareJson = array('sender' => 'MYTOUR',
'message' => $message,
'unicode' => 0,
'flash' => 0,
'sms' => array(
array(
'to' => 9015562063
),
)
);
$jsonData = json_encode($prepareJson);
$api_url = 'http://connectexpress.in/api/v3/index.php?method=sms.json&api_key=A6bf144d9d4eb909c9eff50ba6e062966&format=php&json=' . urlencode($jsonData);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api_url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo "<pre>";
print_r($output);
exit;
$response = file_get_contents($api_url);
echo "<pre>";
print_r($response);
exit;
?>